Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting unknown property: yii\console\Request::cookies #35

Open
paskuale75 opened this issue Aug 13, 2018 · 5 comments
Open

Getting unknown property: yii\console\Request::cookies #35

paskuale75 opened this issue Aug 13, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@paskuale75
Copy link

this happens when I try to run / yii migrated from the console.

@paskuale75
Copy link
Author

[partial solved] remove bootstrap from config before launch ./yii migrate command

@moltam
Copy link
Collaborator

moltam commented Aug 13, 2018

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 moltam reopened this Aug 13, 2018
@moltam moltam self-assigned this Aug 13, 2018
@moltam moltam added the bug label Aug 13, 2018
@moltam moltam added this to the 1.2.2 milestone Aug 13, 2018
@paskuale75
Copy link
Author

@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 ;)

@moltam
Copy link
Collaborator

moltam commented Aug 17, 2018

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.

@paskuale75
Copy link
Author

thanks @moltam I moved it on backend/config now the migration command works like a charm !! 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants