代码拉取完成,页面将自动刷新
#!/usr/bin/env php
<?php
use App\Core\DI;
define('ROOT_PATH', __DIR__);
define('APP_PATH', ROOT_PATH . '/app');
define('IS_CLI', true);
define('ENGINE', 'CLI');
/**
* Read vendor autoload
*/
if (file_exists(ROOT_PATH . "/vendor/autoload.php")) {
include ROOT_PATH . "/vendor/autoload.php";
}
/**
* Get config service for use in inline setup below
*/
$config = include APP_PATH . "/config/config.php";
/**
* Include Autoloader
*/
include APP_PATH . '/config/loader.php';
/** 设置时区 */
ini_set('date.timezone', $config->timezone);
/**
* Create a console application
*/
$di = (new DI($config))->getDI();
/** @var \Xin\Phalcon\Cli\XConsole $console */
$console = $di->getShared('xconsole');
/**
* Handle
*/
$console->handle($argv);
/**
* If configs is set to true, then we print a new line at the end of each execution
*
* If we dont print a new line,
* then the next command prompt will be placed directly on the left of the output
* and it is less readable.
*
* You can disable this behaviour if the output of your application needs to don't have a new line at end
*/
if (isset($config["printNewLine"]) && $config["printNewLine"]) {
echo PHP_EOL;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。