Ejemplo n.º 1
0
 /**
  * Extension register method. Allows any extension to register itself onto the enabled stack.
  *
  * @param BaseExtensionInterface $extension
  * @return void
  */
 public function register(BaseExtensionInterface $extension)
 {
     $name = $extension->getName();
     $this->app['extensions.' . $name] = $extension;
     $this->enabled[$name] = $this->app['extensions.' . $name];
     // Store the composer part of the extensions config
     array_push($this->composer, $extension->getExtensionConfig());
     if ($this->isInitialized) {
         $this->initializeExtension($extension);
     }
 }