PHP Class Jarves\EventListener\ParamFetcherListener

Afficher le fichier Open project: jarves/jarves

Protected Properties

Свойство Type Description
$setParamsAsAttributes

Méthodes publiques

Méthode Description
__construct ( PageStack $pageStack, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher )
onKernelController ( FilterControllerEvent $event )
paramFetcherOnKernelController ( FilterControllerEvent $event ) Core controller handler.

Private Methods

Méthode Description
getAttributeName ( callable $controller ) : string Determines which attribute the ParamFetcher should be injected as.
isParamFetcherType ( ReflectionParameter $controllerParam ) : boolean Returns true if the given controller parameter is type-hinted as an instance of ParamFetcher.

Method Details

__construct() public méthode

public __construct ( PageStack $pageStack, FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher )
$pageStack Jarves\PageStack
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface

onKernelController() public méthode

public onKernelController ( FilterControllerEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterControllerEvent

paramFetcherOnKernelController() public méthode

Core controller handler.
public paramFetcherOnKernelController ( FilterControllerEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterControllerEvent

Property Details

$setParamsAsAttributes protected_oe property

protected $setParamsAsAttributes