Example #1
0
 /**
  * Loads the configuration from the registered extensions.
  *
  * @return Application For method chaining.
  */
 public function loadFromExtensions()
 {
     if (!$this->container instanceof ContainerBuilder) {
         throw ApplicationException::notContainerBuilder();
         // @codeCoverageIgnore
     }
     foreach ($this->container->getExtensions() as $extension) {
         $this->container->loadFromExtension($extension->getAlias());
     }
     return $this;
 }