Good morning to all. I have a problem applying general filters in my application and it sounds like this:
In the config file of my application I put the following
'as beforeRequest' => [
'class' =>'common\filters\LanguageFilter',
'class' => 'common\filters\ActionAuditFilter',
],
But it turns out that only the first filter is executed and not the second, I have swapped the order and this strange behavior remains.
Also I have tried put
'as beforeRequest' => [
'class' =>['common\filters\LanguageFilter',
'common\filters\ActionAuditFilter']
],
But throw singleton error.
Please someone help me??