Автор: Michaël Gallego (mic.gallego@gmail.com)
Наследование: extends Zend\Stdlib\AbstractOptions
Пример #1
0
 /**
  * Collect options
  *
  * @param  ModuleOptions $moduleOptions
  * @return void
  */
 private function collectOptions(ModuleOptions $moduleOptions)
 {
     $this->collectedOptions = ['guest_role' => $moduleOptions->getGuestRole(), 'protection_policy' => $moduleOptions->getProtectionPolicy()];
 }
Пример #2
0
 public function testThrowExceptionIfMoreThanOneRoleProviderIsSet()
 {
     $this->setExpectedException('ZfcRbac\\Exception\\RuntimeException');
     $moduleOptions = new ModuleOptions();
     $moduleOptions->setRoleProvider(['foo', 'bar']);
 }