mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
add plugin loader support
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user