PHP 클래스 eZ\Publish\Core\MVC\Symfony\Routing\Generator\RouteReferenceGenerator

상속: implements eZ\Publish\Core\MVC\Symfony\Routing\Generator\RouteReferenceGeneratorInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__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