mongodb\i18n\MongoDbMessageSource init()

init() public method

Initializes the DbMessageSource component.

This method will initialize the $db property to make sure it refers to a valid DB connection. Configured $cache component would also be initialized.

public void init ( )
throws yii\base\InvalidConfigException

if $db is invalid or $cache is invalid.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.