代码拉取完成,页面将自动刷新
#!/usr/bin/env php
<?php
use Webman\Console\Command;
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/support/bootstrap.php';
require_once __DIR__ . '/constant.php';
if ($timezone = config('app.default_timezone')) {
date_default_timezone_set($timezone);
}
$cli = new Command();
$cli->setName('webman cli');
$cli->installInternalCommands();
if (is_dir($command_path = app_path(). '/command')) {
$cli->installCommands($command_path);
}
if (is_dir($command_path = base_path() . DS . 'yi' . DS . 'command')) {
$cli->installCommands($command_path, 'yi\\command');
}
foreach (scandir(app_path()) as $dir) {
if (in_array($dir, ['.', '..'])) continue;
$info_file = app_path() . DS . $dir . DS . 'info.ini';
if (!file_exists($file) || !file_exists($info_file)) continue;
$info = parse_ini_file($info_file);
if (!$info) continue;
if (empty($info['status'])) continue;
if (is_dir($command_path = app_path() . DS . $dir . DS . 'command')) {
$cli->installCommands($command_path, 'app\\' . $dir . '\\command');
}
}
$cli->run();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。