Add Yii2 Application in Maintenance Mode or serve all requests to Yii application using a single action

We can server all requests to a Yii application using a single controller action with the help of catchAll property.