Пример #1
0
 /**
  * Constructor
  *
  * After invoking parent constructor, add an initializer to inject the
  * attached renderer and translator, if any, to the currently requested helper.
  *
  * @param null $configuration
  */
 public function __construct($configuration = null)
 {
     parent::__construct(null);
     Config::has('jquery', $configuration);
     $this->config = new Config($configuration['jquery'], $this->invokableClasses);
     $this->addInitializer(array($this, 'injectConfig'));
 }
Пример #2
0
 public function __invoke()
 {
     if (!isset($this->_pluginmanager)) {
         $config = $this->_sm->getServiceLocator()->get('config');
         Config::has('zf-complement', $config);
         $this->_pluginmanager = new JQueryPluginManager($config['zf-complement']);
         $this->_pluginmanager->setServiceLocator($this->_sm->getServiceLocator());
     }
     return $this->_pluginmanager;
 }