-
Notifications
You must be signed in to change notification settings - Fork 182
/
main.php
42 lines (40 loc) · 1.27 KB
/
main.php
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
33
34
35
36
37
38
39
40
41
42
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
defined('SWOOLE_PROCESS') or define('SWOOLE_PROCESS', 1);
defined('SWOOLE_TCP') or define('SWOOLE_TCP', 1);
return [
'id' => 'app-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'console\controllers',
'components' => [
'log' => [
'targets' => [
[
'class' => yii\log\FileTarget::className(),
'levels' => ['error', 'warning'],
],
],
],
'session' => [
'class' => yii\web\Session::className()
]
],
'controllerMap'=>[
'serve' => [
'class' => yii\console\controllers\ServeController::className(),
'docroot' => '@frontend/web',
],
'feehi' => [
'class' => console\controllers\FeehiController::className(),
'generateRBACControllerPath' => "@backend/controllers",
'noNeedRBACControllers' => ['AssetsController', 'SiteController'],
]
],
'params' => $params,
];