mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
change plugin start
This commit is contained in:
@@ -35,6 +35,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
global $plugin;
|
||||
$plugin->start();
|
||||
// JsonResource::withoutWrapping();
|
||||
DB::connection(config('database.default'))->enableQueryLog();
|
||||
|
||||
|
||||
@@ -52,3 +52,4 @@ ignore_user_abort(1);
|
||||
|
||||
$hook = new \Nexus\Plugin\Hook();
|
||||
$plugin = new \Nexus\Plugin\Plugin();
|
||||
$plugin->start();
|
||||
|
||||
@@ -7,7 +7,12 @@ class Plugin
|
||||
|
||||
private static array $plugins = [];
|
||||
|
||||
public function __construct()
|
||||
// public function __construct()
|
||||
// {
|
||||
// $this->start();
|
||||
// }
|
||||
|
||||
public function start(): void
|
||||
{
|
||||
$this->loadProviders();
|
||||
$this->bootPlugins();
|
||||
|
||||
Reference in New Issue
Block a user