Inheritance: extends eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter
コード例 #1
0
 public function matchRequest(Request $request)
 {
     $parameters = parent::matchRequest($request);
     $overrideViewAction = $this->configResolver->getParameter('override_url_alias_view_action', 'netgen_ez_platform_site_api');
     if ($overrideViewAction) {
         $parameters['_controller'] = self::OVERRIDE_VIEW_ACTION;
     }
     return $parameters;
 }
コード例 #2
0
 protected function getRouter(LocationService $locationService, URLAliasService $urlAliasService, ContentService $contentService, UrlAliasGenerator $urlAliasGenerator, RequestContext $requestContext)
 {
     $router = new UrlAliasRouter($locationService, $urlAliasService, $contentService, $urlAliasGenerator, $requestContext);
     $router->setConfigResolver($this->configResolver);
     return $router;
 }