Closed spiritdead closed 4 years ago
How does '@customNamespace' => '@customNamespace/modules/moduleName'
alias supposed to work? It points on itself.
How does
'@customNamespace' => '@customNamespace/modules/moduleName'
alias supposed to work? It points on itself.
Sorry is '@customNamespace' => '@common/modules/moduleName'
i will update it
@spiritdead Why should this work? Initialization of aliases in the base\Application.php:(204-206) comes after registerErrorHandler:
$this->registerErrorHandler($config); <--- Here - register ErrorHandler
Component::__construct($config); <--- Here- setting aliases from config
Yeah. Can't use aliases there and we aren't going to change it since it's critical point that error handler is registered first.
Using a custom errorHandler defined in a module with a different namespace im getting the error
in my common config i have defined the alias
and in console config i have this
root@be93cbe95e5f:/app/src# php yii
What steps will reproduce the problem?
yii
to see the list of commandsWhat is the expected result?
should display the list of console commands available
What do you get instead?
Additional info
This should load aliases before try to load the errorHandler or this will crash due that the alias don't exists