File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4
4
"license" : " MIT" ,
5
5
"minimum-stability" : " dev" ,
6
6
"require" : {
7
- "php" : " >=5.4 .0" ,
7
+ "php" : " >=5.5.0||>=7 .0" ,
8
8
"yiisoft/yii2" : " >=2.0.6" ,
9
9
"symfony/filesystem" : " ^3.1" ,
10
10
"symfony/finder" : " ^3.1" ,
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ public function bootstrap($app)
36
36
$ app ->controllerMap ['env ' ] = [
37
37
'class ' => 'nullref\core\console\EnvController ' ,
38
38
];
39
- $ app ->getModule ('core ' )->controllerMap ['migrate ' ] = [
40
- 'class ' => 'nullref\core\console\MigrateController ' ,
41
- ];
39
+ if ($ module = $ app ->getModule ('core ' )) {
40
+ $ module ->controllerMap ['migrate ' ] = [
41
+ 'class ' => 'nullref\core\console\MigrateController ' ,
42
+ ];
43
+ }
42
44
}
43
45
if (YII_ENV_DEV && class_exists ('yii\gii\Module ' )) {
44
46
Event::on (Gii::class, Gii::EVENT_BEFORE_ACTION , function (Event $ event ) {
You can’t perform that action at this time.
0 commit comments