add plugin loader support

This commit is contained in:
crazywhalecc
2022-12-19 01:45:27 +08:00
parent 52a195aca2
commit cd2bb1b570
18 changed files with 373 additions and 96 deletions

View File

@@ -6,6 +6,7 @@ namespace ZM;
use ZM\Command\Server\ServerStartCommand;
use ZM\Exception\SingletonViolationException;
use ZM\Plugin\PluginManager;
use ZM\Plugin\ZMPlugin;
class ZMApplication extends ZMPlugin
@@ -43,6 +44,7 @@ class ZMApplication extends ZMPlugin
*/
public function run()
{
PluginManager::addPlugin(['name' => 'native-app', 'object' => $this]);
(new Framework($this->args))->init()->start();
}
}