ZfcRbac\Factory\HasRoleViewHelperFactory::__invoke PHP Метод

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

public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : HasRole
$container Interop\Container\ContainerInterface
$requestedName string
$options array
Результат ZfcRbac\View\Helper\HasRole
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        /* @var RoleService $roleService */
        $roleService = $container->get('ZfcRbac\\Service\\RoleService');
        return new HasRole($roleService);
    }
HasRoleViewHelperFactory