File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -260,14 +260,14 @@ Global from Address
260
260
Instead of calling ``->from() `` *every * time you create a new email, you can
261
261
create an event subscriber to set it automatically::
262
262
263
- // src/EventListener/MailerFromListener .php
264
- namespace App\EventListener ;
263
+ // src/EventSubscriber/MailerFromSubscriber .php
264
+ namespace App\EventSubscriber ;
265
265
266
266
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
267
267
use Symfony\Component\Mailer\Event\MessageEvent;
268
268
use Symfony\Component\Mime\Email;
269
269
270
- class MailerFromListener implements EventSubscriberInterface
270
+ class MailerFromSubscriber implements EventSubscriberInterface
271
271
{
272
272
public function onMessageSend(MessageEvent $event)
273
273
{
You can’t perform that action at this time.
0 commit comments