Skip to content

Commit d8058c7

Browse files
authored
Исправлено: не работало с Yii2 2.0.36+ (#15)
1 parent f45d0e9 commit d8058c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StubsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function actionIndex()
6767
$components = [];
6868
$userIdentities = [];
6969

70-
foreach (\Yii::$app->requestedParams as $configPath) {
70+
foreach (array_slice(\Yii::$app->getRequest()->getParams(), 1) as $configPath) {
7171
if (!file_exists($configPath)) {
7272
throw new Exception('Config file doesn\'t exists: ' . $configPath);
7373
}

0 commit comments

Comments
 (0)