Ai
1 Star 0 Fork 0

张成林/roach-php-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
roach 798 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kai Sassnowski 提交于 2022-04-18 19:51 +08:00 . Register commands and remove default command
#!/usr/bin/env php
<?php
declare(strict_types=1);
/**
* Copyright (c) 2021 Kai Sassnowski
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/ksassnowski/roach
*/
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}
use RoachPHP\Core\Version;
use RoachPHP\Shell\Commands\RunSpiderCommand;
use RoachPHP\Shell\Repl;
use Symfony\Component\Console\Application;
$application = new Application();
$application->setName(Version::getVersionString());
$application->add(new Repl());
$application->add(new RunSpiderCommand());
$application->run();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zhang-chenglin/roach-php-core.git
git@gitee.com:zhang-chenglin/roach-php-core.git
zhang-chenglin
roach-php-core
roach-php-core
main

搜索帮助