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

Fix exception controller config #9344

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

teohhanhui
Copy link
Contributor

@teohhanhui teohhanhui commented Apr 16, 2018

Q A
Branch? 1.0
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets N/A
License MIT

The exception controller was configured incorrectly. You can easily tell by going to /app_dev.php/_error/404.html

@teohhanhui
Copy link
Contributor Author

ping @pamil

@@ -51,7 +51,7 @@ swiftmailer:
password: "%mailer_password%"

fos_rest:
exception: ~
exception: true
Copy link
Contributor

Choose a reason for hiding this comment

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

I didnt need this change in order to make exceptions work. Is it used on the Api?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is for the API.

@@ -9,5 +9,9 @@ _profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler

_errors:
resource: '@TwigBundle/Resources/config/routing/errors.xml'
Copy link
Contributor

Choose a reason for hiding this comment

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

using “ instead of ‘ would be better, to maintain consistency on config files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is copied straight from Symfony Standard. I suggest not to change it for now.

@pamil pamil merged commit f2cb788 into Sylius:1.0 Apr 25, 2018
@pamil
Copy link
Contributor

pamil commented Apr 25, 2018

Thank you, Teoh, and sorry for the delay! :)

@teohhanhui teohhanhui deleted the fix/exception-controller branch April 25, 2018 08:23
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.

3 participants