Author: Michaël Gallego (mic.gallego@gmail.com)
Inheritance: extends Zend\Stdlib\AbstractOptions
Beispiel #1
0
 /**
  * Collect options
  *
  * @param  ModuleOptions $moduleOptions
  * @return void
  */
 private function collectOptions(ModuleOptions $moduleOptions)
 {
     $this->collectedOptions = ['guest_role' => $moduleOptions->getGuestRole(), 'protection_policy' => $moduleOptions->getProtectionPolicy()];
 }
 public function testThrowExceptionIfMoreThanOneRoleProviderIsSet()
 {
     $this->setExpectedException('ZfcRbac\\Exception\\RuntimeException');
     $moduleOptions = new ModuleOptions();
     $moduleOptions->setRoleProvider(['foo', 'bar']);
 }