PHP Interface ZfcRbac\Guard\GuardInterface

A guard is a lightweight security layer that occurs typically after the route has been matched. ZfcRbac provides built-in implementations that can guard your routes and/or controllers. A guard can be used to block, for instance, a whole route hierarchy (all admin routes). However, only using guards is not sufficient and rather limited, and you should protected your services using the proper authorization service (see the doc for more details)
Author: MichaĆ«l Gallego ([email protected])
Inheritance: extends Zend\EventManager\ListenerAggregateInterface
Show file Open project: zf-commons/zfc-rbac

Public Methods

Method Description
isGranted ( MvcEvent $event ) : boolean

Method Details

isGranted() public method

public isGranted ( MvcEvent $event ) : boolean
$event Zend\Mvc\MvcEvent
return boolean