Tweak PluginServiceProvider

This commit is contained in:
Pig Fang 2019-08-20 10:12:35 +08:00
parent 3b457ce329
commit f4be149bf3

View File

@ -9,7 +9,10 @@ class PluginServiceProvider extends ServiceProvider
{ {
public function register() public function register()
{ {
$this->app->singleton('plugins', PluginManager::class); $this->app->singleton(PluginManager::class);
$this->app->singleton('plugins', function ($app) {
return $app->make(PluginManager::class);
});
} }
public function boot(PluginManager $plugins) public function boot(PluginManager $plugins)