mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 09:15:37 +08:00
update to 2.5.0-b2 (build 409)
This commit is contained in:
@@ -4,14 +4,18 @@ use Doctrine\Common\Annotations\AnnotationReader;
|
||||
use ZM\Annotation\Swoole\OnSetup;
|
||||
use ZM\Annotation\Swoole\SwooleHandler;
|
||||
use ZM\ConsoleApplication;
|
||||
use ZM\Exception\InitException;
|
||||
use ZM\Utils\DataProvider;
|
||||
use ZM\Utils\ZMUtil;
|
||||
|
||||
require_once ((!is_dir(__DIR__ . '/../../vendor')) ? getcwd() : (__DIR__ . "/../..")) . "/vendor/autoload.php";
|
||||
|
||||
try {
|
||||
(new ConsoleApplication('zhamao'))->initEnv();
|
||||
try {
|
||||
(new ConsoleApplication('zhamao'))->initEnv();
|
||||
} catch (InitException $e) {
|
||||
|
||||
}
|
||||
$base_path = DataProvider::getSourceRootDir();
|
||||
$scan_paths = [];
|
||||
$composer = json_decode(file_get_contents($base_path . "/composer.json"), true);
|
||||
|
||||
Reference in New Issue
Block a user