ZfcRbac\Factory\IsGrantedViewHelperFactory::__invoke PHP Method

__invoke() public method

public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : IsGranted
$container Interop\Container\ContainerInterface
$requestedName string
$options array
return ZfcRbac\View\Helper\IsGranted
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        /* @var \ZfcRbac\Service\AuthorizationService $authorizationService */
        $authorizationService = $container->get('ZfcRbac\\Service\\AuthorizationService');
        return new IsGranted($authorizationService);
    }
IsGrantedViewHelperFactory