marcusamatos/jvs-acl
Composer 安装命令:
composer require marcusamatos/jvs-acl
包简介
Zend\Acl module to Zend Framework 2
README 文档
README
This module provide a simple acl controller for zf2.
This module can be used with Doctrin ORM.
This is very simple, only implement the JvsAcl\Entity\UserGroupProviderInterface.
Requirements
Installation
- Add this project in your composer.json:
"required": { "marcusamatos/jvs-acl": "1.*" }
- Enabling ir in your
application.config.phpfile.
return array( 'modules' => array( #[...] 'JvsAcl' #[...] ); );
-
Add
\JvsAcl\Entity\GroupProviderInterfaceto your user entity -
Add in
module.config.php
return array( #[...] 'jvs-acl' => array( 'groups' => array( 'guest', 'member' => array('name' => 'Member', 'parent' => 'guest', 'visible' => true), 'admin' => array('name' => 'Administrator', 'parent' => 'member', 'visible' => true), 'developer' => array('name' => 'Developer', 'parent' => 'admin') ), 'controllers' => array( 'Application\Controller\Index' => array( 'guest' => 'allow' ), 'Application\Controller\Auth' => array( 'guest' => array( 'allow' => array('index', 'forgetPassword') ) ), 'Admin\Controller\Index' => array( 'admin' ), ) ) #[...] );
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-05-29