blessing-skin-server/app/Providers/PluginServiceProvider.php
2019-08-22 11:17:05 +08:00

21 lines
406 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->alias(PluginManager::class, 'plugins');
}
public function boot(PluginManager $plugins)
{
$plugins->boot();
}
}