Yii Application Components Question

Guys,

I made a component and it’s added to Yii::$app.

my question is, Can I use Yii::$app->componentA->propertyB in /config/web.php?

Is Yii::$app->componentA preload?

Definitely no!

You can’t use them because you are in the config file !

Yii just included the file and it started to prepare the configs and load the components … !