讨论数量: 
            
            
    
            你的 easyswoole 的版本还有安装方法都是什么?这个文件怎么和我的不一样。
// ./vendor/bin/easyswoole
#!/usr/bin/env php
<?php
use EasySwoole\EasySwoole\Command\CommandRunner;
use EasySwoole\Command\Caller;
$file = null;
foreach ([ __DIR__ . '/../../../autoload.php', __DIR__ . '/../../vendor/autoload.php',__DIR__ . '/../vendor/autoload.php' ] as $file) {
    if (file_exists($file)) {
        require $file;
        break;
    }
}
if(!file_exists($file)){
    die("include composer autoload.php fail\n");
}
$realCwd = substr(realpath($file),0,-strlen("/vendor/autoload.php"));
defined('IN_PHAR') or define('IN_PHAR', boolval(\Phar::running(false)));
defined('RUNNING_ROOT') or define('RUNNING_ROOT', $realCwd);
defined('EASYSWOOLE_ROOT') or define('EASYSWOOLE_ROOT', IN_PHAR ? \Phar::running() : $realCwd);
if(file_exists(EASYSWOOLE_ROOT.'/bootstrap.php')){
    require_once EASYSWOOLE_ROOT.'/bootstrap.php';
}
$caller = new Caller();
$caller->setScript(current($argv));
$caller->setCommand(next($argv));
$caller->setParams($argv);
reset($argv);
$ret = CommandRunner::getInstance()->run($caller);
if($ret && !empty($ret->getMsg())){
    echo $ret->getMsg()."\n";
}
// ./easyswoole
#!/usr/bin/env php
<?php
$file = null;
foreach ([__DIR__ . '/./vendor/bin/easyswoole', __DIR__ . '/./bin/easyswoole'] as $file) {
    if (file_exists($file)) {
        require $file;
        break;
    }
}
if (!file_exists($file)) {
    die("include vendor/bin/easyswoole fail\n");
} 
           摇曳的猫 的个人博客
 摇曳的猫 的个人博客
        


 
                     
                    
 
             官网的推荐安装,版本3.4.x
官网的推荐安装,版本3.4.x 
             
             
           
           关于 LearnKu
                关于 LearnKu
               
                     
                     
                     粤公网安备 44030502004330号
 粤公网安备 44030502004330号 
 
推荐文章: