Fix for Yii 2.0.13 changes:
Behavior was changed for methods
yii\base\Module::get()
andyii\base\Module::has()
so in case when the requested component was not found in the current module, the parent ones will be checked for this component hierarchically. Considering that the root parent module is usually an application, this change can reduce calls to globalYii::$app->get()
, and replace them with module-scope calls toget()
, making code more reliable and easier to test. However, this change may affect your application if you have code that uses methodyii\base\Module::has()
in order to check existence of the component exactly in this specific module. In this case make sure the logic is not corrupted.