yii2-language-picker
yii2-language-picker copied to clipboard
Getting unknown property: yii\console\Request::cookies
this happens when I try to run / yii migrated from the console.
[partial solved] remove bootstrap from config before launch ./yii migrate command
You don't need this extension in your console application. Configure the extension in the frontend, or backend config.
But this could be fixed in the extension too. I will look into this.
@moltam I have configured the extension in the common/config, I have divided into two (backend and frontend ) ? if it's the solution I'll do it right away ;)
The bottom line is: do not bootstrap the extension in the common, or console config.
The extension is needed only in the frontend (maybe in the backend) app, so you have to modify your config according to this. You can configure the extension in the common config, if you need in more applications, but only bootstrap in the specific application configs.
thanks @moltam I moved it on backend/config now the migration command works like a charm !! :100: