-
Notifications
You must be signed in to change notification settings - Fork 0
/
yii
executable file
·32 lines (24 loc) · 753 Bytes
/
yii
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env php
<?php
/*
* This file is part of the flarum-translations-builder.
*
* Copyright (c) 2019 Robert Korulczyk <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
declare(strict_types=1);
use yii\console\Application;
use yii\helpers\ArrayHelper;
const APP_ROOT = __DIR__;
const APP_CONTEXT = 'console';
require APP_ROOT . '/config/environment.php';
require APP_ROOT . '/vendor/autoload.php';
require APP_ROOT . '/vendor/yiisoft/yii2/Yii.php';
$config = ArrayHelper::merge(
require APP_ROOT . '/config/main.php',
require APP_ROOT . '/config/console.php',
require APP_ROOT . '/config/local.php'
);
exit((new Application($config))->run());