31 lines
999 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
/**
* Yii console bootstrap file.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
2015-07-01 05:09:57 +02:00
defined('YII_DEBUG') or define('YII_DEBUG', true);
// fcgi doesn't have STDIN and STDOUT defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
2015-07-01 05:09:57 +02:00
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/humhub/config/common.php'),
require(__DIR__ . '/humhub/config/console.php'),
(is_readable(__DIR__ . '/config/dynamic.php')) ? require(__DIR__ . '/config/dynamic.php') : [],
require(__DIR__ . '/config/common.php'),
require(__DIR__ . '/config/console.php')
2015-07-01 05:09:57 +02:00
);
$application = new humhub\components\console\Application($config);
$exitCode = $application->run();
exit($exitCode);