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