This plugin is create for manage ACL with zend annotations engine. It looks like this:
use GonterAcl\Annotation\Role;
class IndexController extends AbstractActionController
{
/**
* here u can pass roles in annotations wich users can use this action.
* @Role(roles={"guest","user","admin"})
*/
public function indexAction()
{
return;
}
}
PHP >= 5.5.0
composer require gontero/gontero-acl
return array(
'modules' => array(
// other modules
'GonteroAcl'
),
// other content
);
return array(
'gontero-acl' => array(
// if you use Auth adapter inside this module u can use bCrypt cost
'bCryptCost' => 4,
// if you use Doctrine its name of user entity
'userEntity' => '',
)
);