Class

eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter

class DefaultRouter extends Router implements RequestMatcherInterface, SiteAccessAware

Extension of Symfony default router implementing RequestMatcherInterface.

Methods

setConfigResolver(ConfigResolverInterface $configResolver)

setSiteAccess(SiteAccess $siteAccess = null)

setNonSiteAccessAwareRoutes(array $routes)

Injects route names that are not supposed to be SiteAccess aware.

setSiteAccessRouter(SiteAccessRouterInterface $siteAccessRouter)

matchRequest(Request $request)

generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)

RequestContext getContextBySimplifiedRequest(SimplifiedRequest $simplifiedRequest)

Merges context from $simplifiedRequest into a clone of the current context.

Details

at line 44
public setConfigResolver(ConfigResolverInterface $configResolver)

Parameters

ConfigResolverInterface $configResolver

at line 49
public setSiteAccess(SiteAccess $siteAccess = null)

Parameters

SiteAccess $siteAccess

at line 60
public setNonSiteAccessAwareRoutes(array $routes)

Injects route names that are not supposed to be SiteAccess aware.

i.e. Routes pointing to asset generation (like assetic).

Parameters

array $routes

at line 68
public setSiteAccessRouter(SiteAccessRouterInterface $siteAccessRouter)

Parameters

SiteAccessRouterInterface $siteAccessRouter

at line 73
public matchRequest(Request $request)

Parameters

Request $request

at line 78
public generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)

Parameters

$name
$parameters
$referenceType

at line 159
public RequestContext getContextBySimplifiedRequest(SimplifiedRequest $simplifiedRequest)

Merges context from $simplifiedRequest into a clone of the current context.

Parameters

SimplifiedRequest $simplifiedRequest

Return Value

RequestContext