diff -u b/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php --- b/core/lib/Drupal/Core/Config/ConfigImporter.php +++ b/core/lib/Drupal/Core/Config/ConfigImporter.php @@ -217,9 +217,9 @@ $this->validate(); $this->configFactory->enterContext($this->context); - if (!$this->lock->acquire($this::SERVICE_NAME)) { + if (!$this->lock->acquire(static::SERVICE_NAME)) { // Another process is synchronizing configuration. - throw new ConfigImporterException(sprintf('Import service %s is already running', $this::SERVICE_NAME)); + throw new ConfigImporterException(sprintf('Import service %s is already running', static::SERVICE_NAME)); } $this->importInvokeOwner(); $this->importConfig(); @@ -227,7 +227,7 @@ $this->notify('import'); // The import is now complete. - $this->lock->release($this::SERVICE_NAME); + $this->lock->release(static::SERVICE_NAME); $this->reset(); // Leave the context used during import and clear the ConfigFactory's // static cache. @@ -315,7 +315,7 @@ * The name of the config importer event to dispatch. */ protected function notify($event_name) { - $this->eventDispatcher->dispatch($this::SERVICE_NAME . '.' . $event_name, new ConfigImporterEvent($this)); + $this->eventDispatcher->dispatch(static::SERVICE_NAME . '.' . $event_name, new ConfigImporterEvent($this)); } /** @@ -325,7 +325,7 @@ * TRUE if an import is already running, FALSE if not. */ public function alreadyImporting() { - return !$this->lock->lockMayBeAvailable($this::SERVICE_NAME); + return !$this->lock->lockMayBeAvailable(static::SERVICE_NAME); } /** @@ -335,7 +335,7 @@ * The service name. */ public function getServiceName() { - return $this::SERVICE_NAME; + return static::SERVICE_NAME; } }