-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added an event subscriber to display better error messages in the console #422
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
Conversation
I've added the help notes, so this PR can now be reviewed. Thanks! |
@@ -16,16 +16,37 @@ | |||
use Symfony\Component\Console\Style\SymfonyStyle; | |||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |||
|
|||
/** | |||
* This application uses by default a SQLite database to store its information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be an SQLite
app.redirect_to_preferred_locale_listener: | ||
class: AppBundle\EventListener\RedirectToPreferredLocaleListener | ||
arguments: ['@router', '%app_locales%', '%locale%'] | ||
tags: | ||
- { name: kernel.event_listener, event: kernel.request, method: onKernelRequest } | ||
|
||
# Event subscribers are similar to event listeners but they don't need service tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reads confusing as you still need to make use of the kernel.event_subscriber
tag.
I propose this PR because:
If you agree, I'll polish this and add some helpful comments: