I would like to check if my user have filled certain fields in his profile before he can access any action of any controller. For example
if(empty(field1) &
Just i think this code on config file can help you:
'on beforeAction' => function ($event) { // To log all request information }, 'components' => [ 'response' => [ 'on beforeSend' => function($event) { // To log all response information }, ], ];