コード例 #1
0
 protected function createUrlGenerator()
 {
     $context = new RequestContext();
     return new UrlGenerator(SymfonyRouter::getInstance()->getRouteCollection(), $context);
 }
コード例 #2
0
 public function __construct(RouterConfigurationInterface $routerConfiguration)
 {
     $this->routerConfiguration = $routerConfiguration->loadConfiguration();
     $this->registerRoutes();
     self::$instance = $this;
 }