blessing-skin-server/app/Providers/PluginServiceProvider.php
2019-08-20 10:12:35 +08:00

23 lines
470 B
PHP

<?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->singleton('plugins', function ($app) {
return $app->make(PluginManager::class);
});
}
public function boot(PluginManager $plugins)
{
$plugins->boot();
}
}