Skip to content
Symfony demo application showing how to handle exceptions in a custom way
Branch: master
Clone or download
Latest commit 3706881 Apr 19, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Simplify example - remove logger Apr 18, 2016
bin Initial commit Feb 25, 2016
spec/App
src/App Add UserInputException Apr 19, 2016
var Initial commit Feb 25, 2016
web Initial commit Feb 25, 2016
.gitignore Initial commit Feb 25, 2016
LICENSE Initial commit Feb 25, 2016
README.md Update README.md Feb 28, 2016
composer.json Create PublishedMessageExceptionListener Feb 28, 2016

README.md

ExceptionListenerDemo

Demo symfony application showing how to write a custom exception listener.

To start, install composer dependencies:

php composer.phar install

run a built-in server:

bin/console server:run

and send a curl GET request to the Greeting controller:

curl http://localhost:8000/greet/Marek -i

To check an exception listener, try to greet a thief:

curl http://localhost:8000/greet/Thief -i

You can’t perform that action at this time.