getServiceManager()->get(\common_persistence_Manager::SERVICE_ID); if (!$persistenceManager->hasPersistence(static::DEFAULT_PERSISTENCE_NAME)) { $persistenceManager->registerPersistence( static::DEFAULT_PERSISTENCE_NAME, [ 'driver' => static::DEFAULT_PERSISTENCE_DRIVER, ] ); } return new \common_report_Report(\common_report_Report::TYPE_SUCCESS, 'ServiceState registered'); } }