Files
vito/app/Providers/PluginsServiceProvider.php
Saeed Vaziry 342a3aa4c6 Plugins (#616)
* wip

* fix plugin uninstall

* marketplace
2025-06-19 14:07:15 +02:00

31 lines
739 B
PHP

<?php
namespace App\Providers;
use App\Console\Commands\Plugins\InstallPluginCommand;
use App\Console\Commands\Plugins\LoadPluginsCommand;
use App\Console\Commands\Plugins\PluginsListCommand;
use App\Plugins\Plugins;
use Illuminate\Support\ServiceProvider;
class PluginsServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->bind('plugins', function () {
return new Plugins;
});
}
public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->commands([
InstallPluginCommand::class,
LoadPluginsCommand::class,
PluginsListCommand::class,
]);
}
}
}