eZ\Bundle\EzPublishCoreBundle\Routing\UrlAliasRouter::setConfigResolver PHP Method

setConfigResolver() public method

public setConfigResolver ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver )
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
    public function setConfigResolver(ConfigResolverInterface $configResolver)
    {
        $this->configResolver = $configResolver;
    }

Usage Example

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