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

Configure adjustments api and permissions #3502

Merged
merged 1 commit into from
Oct 30, 2015

Conversation

pjedrzejewski
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets -
License MIT
Doc PR -

@pjedrzejewski pjedrzejewski added this to the v0.16.0 milestone Oct 29, 2015
public function createNew()
{
if (null === $orderId = $this->getRequest()->get('orderId')) {
throw new NotFoundHttpException('No order id given.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for consistency, isn't it better to use 'createNotFoundException' method? In that case we don't need to have 'NotFoundHttpException' here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this should throw 400 bad request.

👍 for createNotFound in condition below

michalmarcinkowski added a commit that referenced this pull request Oct 30, 2015
Configure adjustments api and permissions
@michalmarcinkowski michalmarcinkowski merged commit bc99f4e into Sylius:master Oct 30, 2015
@michalmarcinkowski
Copy link
Contributor

Thanks Paweł! 👍

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.

None yet

3 participants