getServiceLocator()->get(NotificationServiceInterface::SERVICE_ID); $schemaCollection = $this->getPersistenceManager()->getSqlSchemas(); if ($notificationService instanceof SchemaProviderInterface) { $notificationService->provideSchema($schemaCollection); } $this->getPersistenceManager()->applySchemas($schemaCollection); } /** * @return PersistenceManager */ private function getPersistenceManager() { return $this->getServiceLocator()->get(PersistenceManager::SERVICE_ID); } }