/** * @Request({"name"}, csrf=true) */ public function uninstallAction($name) { return App::response()->stream(function () use($name) { try { $this->manager->uninstall($name); echo "\nstatus=success"; } catch (\Exception $e) { printf("%s\nstatus=error", $e->getMessage()); } }); }
/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $updater = new PackageManager($output); $updater->uninstall((array) $this->argument('packages')); }