serviceManager = new Zend_ServiceManager(); $this->serviceManager->addAbstractFactory(new ServiceFactory); } public function addKey($key,$value = "") { if(!empty($value)) $this->serviceManager->$key($value); else $this->serviceManager->$key(); } public function setServiceManager(Zend_ServiceManager $service) { $this->serviceManager = $service; } public function getServiceManager() { return $this->serviceManager; } }