/** * 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')])); }
/** * 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)); }