2016-10-17 12:20:55 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2016-10-24 22:32:07 +08:00
|
|
|
use App\Services\PluginManager;
|
2016-10-17 12:20:55 +08:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class PluginServiceProvider extends ServiceProvider
|
|
|
|
{
|
2019-08-08 17:21:15 +08:00
|
|
|
public function register()
|
|
|
|
{
|
2019-08-22 11:17:05 +08:00
|
|
|
$this->app->singleton(PluginManager::class);
|
|
|
|
$this->app->alias(PluginManager::class, 'plugins');
|
2019-08-08 17:21:15 +08:00
|
|
|
}
|
|
|
|
|
2016-10-24 22:32:07 +08:00
|
|
|
public function boot(PluginManager $plugins)
|
2016-10-17 12:20:55 +08:00
|
|
|
{
|
2019-08-13 18:42:17 +08:00
|
|
|
$plugins->boot();
|
2016-10-27 22:52:26 +08:00
|
|
|
}
|
2016-10-17 12:20:55 +08:00
|
|
|
}
|