Свойство | Тип | Описание | |
---|---|---|---|
$contentService | eZ\Publish\API\Repository\ContentService | ||
$generator | |||
$locationService | eZ\Publish\API\Repository\LocationService | ||
$logger | Psr\Log\LoggerInterface | ||
$requestContext | Symfony\Component\Routing\RequestContext | ||
$rootLocationId | integer | string | Holds current root Location id. | |
$urlAliasService | eZ\Publish\API\Repository\URLAliasService |
Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\URLAliasService $urlAliasService, eZ\Publish\API\Repository\ContentService $contentService, |
||
generate ( string | eZ\Publish\API\Repository\Values\Content\Location $name, mixed $parameters = [], integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string | Generates a URL for a location, from the given parameters. | |
getContext ( ) | ||
getRouteCollection ( ) : |
Gets the RouteCollection instance associated with this Router. | |
getRouteDebugMessage ( $name, array $parameters = [] ) | ||
match ( $pathinfo ) | Not supported. Please use matchRequest() instead. | |
matchRequest ( |
Tries to match a request with a set of routes. | |
setContext ( Symfony\Component\Routing\RequestContext $context ) | ||
setRootLocationId ( integer | string $rootLocationId ) | Injects current root Location id. | |
supports ( mixed $name ) : boolean | Whether the router supports the thing in $name to generate a route. |
Метод | Описание | |
---|---|---|
getUrlAlias ( $pathinfo ) : eZ\Publish\API\Repository\Values\Content\URLAlias | Returns the UrlAlias object to use, starting from the request. | |
needsCaseRedirect ( eZ\Publish\API\Repository\Values\Content\URLAlias $loadedUrlAlias, string $requestedPath, string $pathPrefix ) : boolean | Returns true of false on comparing $urlAlias->path and $path with case sensitivity. | |
removePathPrefix ( string $path, string $prefix ) : string | Removes prefix from path. |
public __construct ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\URLAliasService $urlAliasService, eZ\Publish\API\Repository\ContentService $contentService, |
||
$locationService | eZ\Publish\API\Repository\LocationService | |
$urlAliasService | eZ\Publish\API\Repository\URLAliasService | |
$contentService | eZ\Publish\API\Repository\ContentService | |
$generator | ||
$requestContext | Symfony\Component\Routing\RequestContext | |
$logger | Psr\Log\LoggerInterface |
public generate ( string | eZ\Publish\API\Repository\Values\Content\Location $name, mixed $parameters = [], integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string | ||
$name | string | eZ\Publish\API\Repository\Values\Content\Location | The name of the route or a Location instance |
$parameters | mixed | An array of parameters |
$referenceType | integer | The type of reference to be generated (one of the constants) |
Результат | string | The generated URL |
public getRouteCollection ( ) : |
||
Результат | A RouteCollection instance |
public getRouteDebugMessage ( $name, array $parameters = [] ) | ||
$parameters | array |
protected getUrlAlias ( $pathinfo ) : eZ\Publish\API\Repository\Values\Content\URLAlias | ||
$pathinfo | ||
Результат | eZ\Publish\API\Repository\Values\Content\URLAlias |
public match ( $pathinfo ) | ||
$pathinfo |
public matchRequest ( |
||
$request | The request to match | |
Результат | array | An array of parameters |
public setContext ( Symfony\Component\Routing\RequestContext $context ) | ||
$context | Symfony\Component\Routing\RequestContext |
public setRootLocationId ( integer | string $rootLocationId ) | ||
$rootLocationId | integer | string |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
Результат | eZ\Publish\API\Repository\ContentService |
protected UrlAliasGenerator,eZ\Publish\Core\MVC\Symfony\Routing\Generator $generator | ||
Результат |
protected LocationService,eZ\Publish\API\Repository $locationService | ||
Результат | eZ\Publish\API\Repository\LocationService |
protected LoggerInterface,Psr\Log $logger | ||
Результат | Psr\Log\LoggerInterface |
protected RequestContext,Symfony\Component\Routing $requestContext | ||
Результат | Symfony\Component\Routing\RequestContext |