Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / dependency-injection / Compiler / MergeExtensionConfigurationPass.php
index c36535927f8c6fcb51dd47a4604853ace5a8fb27..71cfa2d51dc19635146d0ced70077acb0db73154 100644 (file)
@@ -147,7 +147,7 @@ class MergeExtensionConfigurationContainerBuilder extends ContainerBuilder
     {
         parent::__construct($parameterBag);
 
-        $this->extensionClass = get_class($extension);
+        $this->extensionClass = \get_class($extension);
     }
 
     /**
@@ -155,7 +155,7 @@ class MergeExtensionConfigurationContainerBuilder extends ContainerBuilder
      */
     public function addCompilerPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION/*, int $priority = 0*/)
     {
-        throw new LogicException(sprintf('You cannot add compiler pass "%s" from extension "%s". Compiler passes must be registered before the container is compiled.', get_class($pass), $this->extensionClass));
+        throw new LogicException(sprintf('You cannot add compiler pass "%s" from extension "%s". Compiler passes must be registered before the container is compiled.', \get_class($pass), $this->extensionClass));
     }
 
     /**
@@ -163,7 +163,7 @@ class MergeExtensionConfigurationContainerBuilder extends ContainerBuilder
      */
     public function registerExtension(ExtensionInterface $extension)
     {
-        throw new LogicException(sprintf('You cannot register extension "%s" from "%s". Extensions must be registered before the container is compiled.', get_class($extension), $this->extensionClass));
+        throw new LogicException(sprintf('You cannot register extension "%s" from "%s". Extensions must be registered before the container is compiled.', \get_class($extension), $this->extensionClass));
     }
 
     /**