Commit 4a5ca33c by Valery Viktorovsky

Added module class param to prevent error

Prevent 'Object configuration must be an array containing a "class" element.' error.
parent a90242ad
...@@ -69,10 +69,12 @@ return [ ...@@ -69,10 +69,12 @@ return [
'modules' => [ 'modules' => [
'v1' => [ 'v1' => [
'basePath' => '@app/modules/v1', 'basePath' => '@app/modules/v1',
'class' => 'app\modules\v1\Module',
'controllerNamespace' => 'app\modules\v1\controllers', 'controllerNamespace' => 'app\modules\v1\controllers',
], ],
'v2' => [ 'v2' => [
'basePath' => '@app/modules/v2', 'basePath' => '@app/modules/v2',
'class' => 'app\modules\v2\Module',
'controllerNamespace' => 'app\modules\v2\controllers', 'controllerNamespace' => 'app\modules\v2\controllers',
], ],
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment