GLOBALS hook&plugin

This commit is contained in:
xiaomlove
2022-06-08 16:49:01 +08:00
parent 2a9b9ce919
commit fa66aa5887

View File

@@ -7,8 +7,8 @@ require dirname(__DIR__) . '/include/functions.php';
if (!RUNNING_IN_OCTANE) { if (!RUNNING_IN_OCTANE) {
\Nexus\Nexus::boot(); \Nexus\Nexus::boot();
} }
$hook = new \Nexus\Plugin\Hook(); $GLOBALS['hook'] = $hook = new \Nexus\Plugin\Hook();
$plugin = new \Nexus\Plugin\Plugin(); $GLOBALS['plugin'] = $plugin = new \Nexus\Plugin\Plugin();
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Create The Application | Create The Application