/** * 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')); }
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; }