protected function createUrlGenerator() { $context = new RequestContext(); return new UrlGenerator(SymfonyRouter::getInstance()->getRouteCollection(), $context); }
public function __construct(RouterConfigurationInterface $routerConfiguration) { $this->routerConfiguration = $routerConfiguration->loadConfiguration(); $this->registerRoutes(); self::$instance = $this; }