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