Jarves\EventListener\ParamFetcherListener::getAttributeName PHP Метод

getAttributeName() приватный Метод

Determines which attribute the ParamFetcher should be injected as.
private getAttributeName ( callable $controller ) : string
$controller callable The controller action as an "array" callable.
Результат string
    private function getAttributeName(callable $controller)
    {
        list($object, $name) = $controller;
        $method = new \ReflectionMethod($object, $name);
        foreach ($method->getParameters() as $param) {
            if ($this->isParamFetcherType($param)) {
                return $param->getName();
            }
        }
        // If there is no typehint, inject the ParamFetcher using a default name.
        return 'paramFetcher';
    }