Автор: Espen Hovlandsdal (espen@hovlandsdal.com)
Наследование: extends AbstractAdapter, implements Imbo\Auth\AccessControl\Adapter\AdapterInterface
Пример #1
0
 /**
  * Class constructor
  *
  * @param array $accessList Array defining the available public/private keys
  */
 public function __construct(array $accessList = [])
 {
     parent::__construct($this->getExpandedAclList($accessList));
 }
Пример #2
0
 /**
  * @dataProvider getAccessRules
  * @covers Imbo\Auth\AccessControl\Adapter\ArrayAdapter::getAccessRule
  */
 public function testGetAccessRule($acl, $publicKey, $ruleId, $rule)
 {
     $adapter = new ArrayAdapter($acl);
     $this->assertSame($rule, $adapter->getAccessRule($publicKey, $ruleId));
 }