lexik/LexikJWTAuthenticationBundle — pull request #10 by gfreeau (2014-05-15 21:01:34+00:00)
Title: Added ability to throw exceptions for handling later and to disable the catch-all entry point

Hello,

This pull request does not change any behaviours by default, but it does allow you to have the listener throw exceptions instead of handling the response.

This is useful when using FOSRestBundle which has a much more comprehensive exception controller. It handles setting the correct exception code and in the dev environment shows things such as stack traces. More info is here: https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/4-exception-controller-support.md

For the same reason, the entry point is not required as this bundle can handle setting the correct code.

The default behaviour is the same as it is now.

The simple config for changing it is:

```
api:
pattern: ^/api
stateless: true
lexik_jwt:
throw_exceptions: true
create_entry_point: false
```