Exemplo n.º 1
0
<?php

define('env_name', 'Console');
define('env_type', 'cli');
if (PHP_SAPI !== 'cli' || !defined('root')) {
    die;
}
require_once root . '/Loader/Autoload.php';
class Console extends Ffcms\Console\Console
{
}
// make alias
class App extends Ffcms\Console\Console
{
}
try {
    // prepare to run
    \Console::init(['Database' => true]);
    // display output
    echo \Console::run();
} catch (Exception $e) {
    echo $e->getMessage() . "\n";
}
Exemplo n.º 2
0
<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <*****@*****.**>
// +----------------------------------------------------------------------
namespace think;

// ThinkPHP 引导文件
// 加载基础文件
require __DIR__ . '/base.php';
// 执行应用
App::initCommon();
Console::init();
Exemplo n.º 3
0
 function PhpQuickProfiler($startTime)
 {
     $this->startTime = $startTime;
     require_once 'Console.php';
     Console::init();
 }