ZfcRbac\Factory\HasRoleViewHelperFactory::__invoke PHP Method

__invoke() public method

public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : HasRole
$container Interop\Container\ContainerInterface
$requestedName string
$options array
return 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