getServiceManager()->get(MonitorCacheService::SERVICE_ID); } catch (ServiceNotFoundException $exception) { $service = new MonitorCacheService(array( MonitorCacheService::OPTION_PERSISTENCE => 'default', MonitorCacheService::OPTION_USE_UPDATE_MULTIPLE => false )); $service->setServiceManager($this->getServiceManager()); } $persistence = $service->getPersistence(); DbSetup::generateTable($persistence); $service->setOption(MonitorCacheService::OPTION_PRIMARY_COLUMNS, DbSetup::getPrimaryColumns()); $this->registerService(MonitorCacheService::SERVICE_ID, $service); } }