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; }
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; }