Beispiel #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());
 }
Beispiel #2
0
 /**
  * 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;
 }
Beispiel #3
0
 /**
  *	Set plugin loader
  * @param Zend_Loader_PluginLoader_Interface $pluginLoader
  */
 public static function setPluginLoader(Zend_Loader_PluginLoader_Interface $pluginLoader = null)
 {
     self::$pluginLoader = $pluginLoader;
 }