pelican-panel-mirror/app/Console/Commands/Plugin/ComposerPluginsCommand.php
2025-11-10 09:00:23 +01:00

26 lines
576 B
PHP

<?php
namespace App\Console\Commands\Plugin;
use App\Facades\Plugins;
use Exception;
use Illuminate\Console\Command;
class ComposerPluginsCommand extends Command
{
protected $signature = 'p:plugin:composer';
protected $description = 'Makes sure the needed composer packages for all installed plugins are available.';
public function handle(): void
{
try {
Plugins::manageComposerPackages();
} catch (Exception $exception) {
report($exception);
$this->error($exception->getMessage());
}
}
}