Ejemplo n.º 1
0
 /**
  * @covers System_Acl_Loader::factory
  */
 public function testFactoryWithConfig()
 {
     $acl = new Zend_Acl();
     $options = array('test' => 'test', 'a' => array(1, 2, 3));
     $loader = System_Acl_Loader::factory('LoaderMock', $acl, new Zend_Config($options));
     self::assertEquals($options, $loader->getOptions());
 }
Ejemplo n.º 2
0
Archivo: Acl.php Proyecto: kandy/system
 /**
  * Init Zend_Acl resource
  *
  * @return Zend_Acl
  */
 public function init()
 {
     $this->bootstrapDependencies();
     $acl = new Zend_Acl();
     $loader = System_Acl_Loader::factory($this->getLoaderClass(), $acl, $this->getOptions());
     $loader->load();
     return $acl;
 }