PHP Класс eZ\Publish\Core\MVC\Symfony\Routing\Generator\RouteReferenceGenerator

Наследование: implements eZ\Publish\Core\MVC\Symfony\Routing\Generator\RouteReferenceGeneratorInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
generate ( mixed $resource = null, array $params = [] ) : RouteReference Generates a RouteReference, based on the given resource and associated params.

Описание методов

__construct() публичный Метод

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

generate() публичный Метод

If $resource is null, generated route reference will be based on current request's route and parameters.
public generate ( mixed $resource = null, array $params = [] ) : RouteReference
$resource mixed The route name. Can be any resource supported by the different routers (e.g. Location object).
$params array Array of parameters, used to generate the final link along with $resource.
Результат eZ\Publish\Core\MVC\Symfony\Routing\RouteReference