/**
  * Handle the command.
  */
 public function handle()
 {
     if ($this->extension->getLoader() === null) {
         $this->extension->setLoader(substr(get_class($this->extension), 0, -9) . 'Loader@handle');
         // Replace "Extension with Loader@handle"
     }
 }
示例#2
0
 /**
  * Handle the command.
  *
  * @param Container $container
  */
 public function handle(Container $container)
 {
     $container->call($this->extension->getLoader(), ['extension' => $this->extension]);
 }