PHP Class Jarves\EventListener\ParamFetcherListener

Mostra file Open project: jarves/jarves

Protected Properties

Property Type Description
$setParamsAsAttributes

Public Methods

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

Private Methods

Method 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 method

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

onKernelController() public method

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

paramFetcherOnKernelController() public method

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

Property Details

$setParamsAsAttributes protected_oe property

protected $setParamsAsAttributes