3 Star 3 Fork 0

七曜新星/IoT-Shop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
easyswoole 623 Bytes
一键复制 编辑 原始数据 按行查看 历史
Edward ZHOU 提交于 2019-04-06 17:32 . asdasd
#!/usr/bin/env php
<?php
use EasySwoole\EasySwoole\Command\CommandRunner;
defined('IN_PHAR') or define('IN_PHAR', boolval(\Phar::running(false)));
defined('RUNNING_ROOT') or define('RUNNING_ROOT', realpath(getcwd()));
defined('EASYSWOOLE_ROOT') or define('EASYSWOOLE_ROOT', IN_PHAR ? \Phar::running() : realpath(getcwd()));
$file = EASYSWOOLE_ROOT.'/vendor/autoload.php';
if (file_exists($file)) {
require $file;
}else{
die("include composer autoload.php fail\n");
}
$args = $argv;
//trim first command
array_shift($args);
$ret = CommandRunner::getInstance()->run($args);
if(!empty($ret)){
echo $ret."\n";
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/quantumspace/IoT-Shop.git
git@gitee.com:quantumspace/IoT-Shop.git
quantumspace
IoT-Shop
IoT-Shop
master

搜索帮助