Skip to content

Conversation

@egorpromo
Copy link
Contributor

It is the best practice to use common wraper for defining the get-parameters.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling a446f3a on egorpromo:eliminate_get into b06caa2 on yiisoft:master.

@samdark
Copy link
Member

samdark commented Nov 16, 2013

Overall code change is OK but tests are failing.

@egorpromo
Copy link
Contributor Author

@samdark What problem you have?

@samdark
Copy link
Member

samdark commented Nov 16, 2013

@ghost ghost assigned cebe Nov 16, 2013
cebe added a commit that referenced this pull request Nov 16, 2013
@cebe cebe merged commit 0c505fc into yiisoft:master Nov 16, 2013
cebe added a commit that referenced this pull request Nov 16, 2013
cebe added a commit that referenced this pull request Nov 16, 2013
@cebe
Copy link
Member

cebe commented Nov 16, 2013

Thanks! Adjusted it to work also when request is not web.

@egorpromo
Copy link
Contributor Author

$params = (Yii::$app->request instanceof Request) ? Yii::$app->request->get : [];

Must be Yii::$app->request->get()!

@cebe
Copy link
Member

cebe commented Nov 16, 2013

Thanks, has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants