TDoG-Skin/app/Providers/PluginServiceProvider.php
2024-08-17 19:13:54 +08:00

21 lines
406 B
PHP
Executable File

<?php
namespace App\Providers;
use App\Services\PluginManager;
use Illuminate\Support\ServiceProvider;
class PluginServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton(PluginManager::class);
$this->app->alias(PluginManager::class, 'plugins');
}
public function boot(PluginManager $plugins)
{
$plugins->boot();
}
}