예제 #1
0
파일: AclTest.php 프로젝트: pnaq57/zf2demo
 public function testSetRuleWorksWithResourceInterface()
 {
     $roleGuest = new Role\GenericRole('guest');
     $this->_acl->addRole($roleGuest);
     $resourceFoo = new Resource\GenericResource('foo');
     $this->_acl->addResource($resourceFoo);
     $this->_acl->setRule(Acl\Acl::OP_ADD, Acl\Acl::TYPE_ALLOW, $roleGuest, $resourceFoo);
 }