Skip to content

Commit 0e5331e

Browse files
committed
fixes #9 #10
1 parent 53e499d commit 0e5331e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

StubsController.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,19 @@ public function actionIndex()
7474

7575
$config = include($configPath);
7676

77-
foreach ($config['components'] as $name => $component) {
78-
if (!isset($component['class'])) {
79-
continue;
80-
}
77+
if (empty($config['components'])) {
78+
continue;
79+
}
8180

81+
foreach ($config['components'] as $name => $component) {
8282
if ($name === 'user' && isset($component['identityClass'])) {
8383
$userIdentities[] = $component['identityClass'];
8484
}
8585

86+
if (!isset($component['class'])) {
87+
continue;
88+
}
89+
8690
$components[$name][] = $component['class'];
8791
}
8892
}

0 commit comments

Comments
 (0)