Skip to content

Commit

Permalink
fixes #9 #10
Browse files Browse the repository at this point in the history
  • Loading branch information
bazilio91 committed May 9, 2017
1 parent 53e499d commit 0e5331e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions StubsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,19 @@ public function actionIndex()

$config = include($configPath);

foreach ($config['components'] as $name => $component) {
if (!isset($component['class'])) {
continue;
}
if (empty($config['components'])) {
continue;
}

foreach ($config['components'] as $name => $component) {
if ($name === 'user' && isset($component['identityClass'])) {
$userIdentities[] = $component['identityClass'];
}

if (!isset($component['class'])) {
continue;
}

$components[$name][] = $component['class'];
}
}
Expand Down

0 comments on commit 0e5331e

Please sign in to comment.