Persistent state extension for Yii2 modules or applications