Open mikk150 opened 2 months ago
IF I want to use yii\filters\ContentNegotiator in bootstrap(as it implements yii\base\BootstrapInterface and therefore I should be able to do so)
yii\filters\ContentNegotiator
yii\base\BootstrapInterface
It unfortunately does not work as
Therefore it does not work
There are 2 solutions how to fix it
yii\filters\ContentNegotiator::bootstrap()
yii\base\Application
beforeAction
yii\filters\ContentNegotiator::beforeAction()
I'd go way 1 since that's not touching framework itself. Do you have time for implementation?
IF I want to use
yii\filters\ContentNegotiator
in bootstrap(as it implementsyii\base\BootstrapInterface
and therefore I should be able to do so)It unfortunately does not work as
Therefore it does not work
There are 2 solutions how to fix it
yii\filters\ContentNegotiator::bootstrap()
should only register eventHandler onyii\base\Application
onbeforeAction
event and handle it's ownyii\filters\ContentNegotiator::beforeAction()