Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Notifier] Dispatch message event in null transport#35841
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas left a comment
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.
The mailer component does it the same way.
I confirm.
| publicfunction__construct(EventDispatcherInterface$dispatcher =null) | ||
| { | ||
| $this->dispatcher = LegacyEventDispatcherProxy::decorate($dispatcher); |
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->dispatcher = class_exists(\Symfony\Component\EventDispatcher\Event::class) ? LegacyEventDispatcherProxy::decorate($dispatcher) : $dispatcher;
2786993 toa0d99ceComparefabpot commentedFeb 24, 2020
Thank you@jschaedl. |
I think we should be able to log notifications via the
NotificationLoggerListenereven if they were sent to a null transport. The mailer component does it the same way.