Skip to content

Commit f45d0e9

Browse files
vjikbazilio91
authored andcommitted
Support components defined as a string (#12)
1 parent 0e5331e commit f45d0e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

StubsController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public function actionIndex()
7979
}
8080

8181
foreach ($config['components'] as $name => $component) {
82+
if (is_string($component)) {
83+
$component = ['class' => $component];
84+
}
85+
8286
if ($name === 'user' && isset($component['identityClass'])) {
8387
$userIdentities[] = $component['identityClass'];
8488
}

0 commit comments

Comments
 (0)