Свойство | Тип | Описание | |
---|---|---|---|
$logger | Psr\Log\LoggerInterface | ||
$requestContext | Symfony\Component\Routing\RequestContext | ||
$siteAccess | |||
$siteAccessRouter | eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface |
Метод | Описание | |
---|---|---|
doGenerate ( mixed $urlResource, array $parameters ) : string | Generates the URL from $urlResource and $parameters. | |
generate ( mixed $urlResource, array $parameters, integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string | Triggers URL generation for $urlResource and $parameters. | |
setLogger ( Psr\Log\LoggerInterface $logger = null ) | ||
setRequestContext ( Symfony\Component\Routing\RequestContext $requestContext ) | ||
setSiteAccess ( |
||
setSiteAccessRouter ( eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface $siteAccessRouter ) |
Метод | Описание | |
---|---|---|
generateAbsoluteUrl ( string $uri, Symfony\Component\Routing\RequestContext $requestContext ) : string | Generates an absolute URL from $uri and the request context. |
Метод | Описание | |
---|---|---|
getContextBySimplifiedRequest ( |
Merges context from $simplifiedRequest into a clone of the current context. |
public generate ( mixed $urlResource, array $parameters, integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string | ||
$urlResource | mixed | Type can be anything, depending on the context. It's up to the router to pass the appropriate value to the implementor. |
$parameters | array | Arbitrary hash of parameters to generate a link. SiteAccess name can be provided as 'siteaccess' to generate a link to it (cross siteaccess link). |
$referenceType | integer | The type of reference to be generated (one of the constants) |
Результат | string |
protected generateAbsoluteUrl ( string $uri, Symfony\Component\Routing\RequestContext $requestContext ) : string | ||
$uri | string | |
$requestContext | Symfony\Component\Routing\RequestContext | |
Результат | string |
public setLogger ( Psr\Log\LoggerInterface $logger = null ) | ||
$logger | Psr\Log\LoggerInterface |
public setRequestContext ( Symfony\Component\Routing\RequestContext $requestContext ) | ||
$requestContext | Symfony\Component\Routing\RequestContext |
public setSiteAccess ( |
||
$siteAccess |
public setSiteAccessRouter ( eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface $siteAccessRouter ) | ||
$siteAccessRouter | eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface |
protected LoggerInterface,Psr\Log $logger | ||
Результат | Psr\Log\LoggerInterface |
protected RequestContext,Symfony\Component\Routing $requestContext | ||
Результат | Symfony\Component\Routing\RequestContext |
protected SiteAccess,eZ\Publish\Core\MVC\Symfony $siteAccess | ||
Результат |