コード例 #1
0
 /**
  * Execute the console command.
  *
  * @param  \Orchestra\Extension\Processor\Deactivator  $deactivator
  *
  * @return void
  */
 public function handle(Processor $deactivator)
 {
     if (!$this->confirmToProceed()) {
         return;
     }
     return $deactivator->deactivate($this, new Fluent(['name' => $this->argument('name')]));
 }
コード例 #2
0
 /**
  * Deactivate an extension.
  *
  * GET (:orchestra)/extensions/deactivate/(:name)
  *
  * @param  \Orchestra\Extension\Processor\Deactivator  $deactivator
  * @param  string  $vendor
  * @param  string|null  $package
  *
  * @return mixed
  */
 public function deactivate(DeactivatorProcessor $deactivator, $vendor, $package = null)
 {
     return $deactivator->deactivate($this, $this->getExtension($vendor, $package));
 }