/** * Constructor * * Ensure FrontController resource is registered * * @param Zend_Application|Zend_Application_Bootstrap_Bootstrapper $application * @return void */ public function __construct($application) { parent::__construct($application); if (!$this->hasPluginResource('FrontController')) { $this->registerPluginResource('FrontController'); } }
/** * Constructor * * Invoke setContainerFactory, set _coantainerFactory if factory is configurated * Ensure FrontController resource is registered * * @param Zend_Application|Zend_Application_Bootstrap_Bootstrapper $application * @return void */ public function __construct($application) { $this->setContainerFactory($application->getOptions()); parent::__construct($application); if (!$this->hasPluginResource('FrontController')) { $this->registerPluginResource('FrontController'); } }
/** * Constructor * * Ensure FrontController resource is registered * * @param Zend_Application|Zend_Application_Bootstrap_Bootstrapper $application * @return void */ public function __construct($application) { parent::__construct($application); if ($application->hasOption('resourceloader')) { $this->setOptions(array('resourceloader' => $application->getOption('resourceloader'))); } $this->getResourceLoader(); if (!$this->hasPluginResource('FrontController')) { $this->registerPluginResource('FrontController'); } }
/** * Creates the bootstrapper. * * @param Zend_Application|Zend_Application_Bootstrap_Bootstrapper $application */ public function __construct($application) { parent::__construct($application); // Uses a simple container that is not global. $this->setContainer(new stdClass()); }