An extension to Symfony FrameworkBundle that adds annotation configuration for Controller classes
fabpot bug #592 Fix ConversionException resulting in a 500 instead 404 (mass…
…imilianobraglia)

This PR was merged into the 5.2.x-dev branch.

Discussion
----------

Fix ConversionException resulting in a 500 instead 404

Hey all!

We've found that when you're trying to use the `DoctrineParamConverter` with a custom Doctrine Type that could throw a `ConversionException`, this exception is not treated like a 404. Instead, it propagates until a 500 is returned. This PR aims to fix this behaviour.

Practical example:
`GET /resource/{id}` (i.e. `GET /resource/this_is_not_an_uuid`) where the id is a string representation of ramsey/uuid. Using https://github.com/ramsey/uuid-doctrine the uuid type throws the ConversionException where the specified value is not a valid uuid.

Commits
-------

e5064ee Fix ConversionException resulting in a 500 instead 404
Latest commit 9ef408f Oct 26, 2018

README.md

SensioFrameworkExtraBundle

This bundle provides a way to configure your controllers with annotations.

Read about it on its official homepage.