setRoleProvider() public method

Set the configuration for the role provider
public setRoleProvider ( array $roleProvider )
$roleProvider array
Esempio n. 1
0
 public function testThrowExceptionIfMoreThanOneRoleProviderIsSet()
 {
     $this->setExpectedException('ZfcRbac\\Exception\\RuntimeException');
     $moduleOptions = new ModuleOptions();
     $moduleOptions->setRoleProvider(['foo', 'bar']);
 }