From e2dae295699ea492537cfd759000aad04158605d Mon Sep 17 00:00:00 2001 From: phrakon Date: Fri, 13 Nov 2020 11:59:51 +0300 Subject: [PATCH] added support for __class configuration key See details https://github.com/yiisoft/yii2/pull/17607 --- StubsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StubsController.php b/StubsController.php index f063a0a..689b932 100644 --- a/StubsController.php +++ b/StubsController.php @@ -87,11 +87,11 @@ public function actionIndex() $userIdentities[] = $component['identityClass']; } - if (!isset($component['class'])) { - continue; + if (isset($component['class'])) { + $components[$name][] = $component['class']; + } elseif (isset($component['__class'])) { + $components[$name][] = $component['__class']; } - - $components[$name][] = $component['class']; } }