File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 14
14
use Psr \Log \LoggerInterface ;
15
15
use Psr \Log \NullLogger ;
16
16
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
17
+ use Symfony \Component \EventDispatcher \LegacyEventDispatcherProxy ;
17
18
use Symfony \Component \Mailer \DelayedSmtpEnvelope ;
18
19
use Symfony \Component \Mailer \Event \MessageEvent ;
19
20
use Symfony \Component \Mailer \Exception \TransportException ;
@@ -36,7 +37,7 @@ abstract class AbstractTransport implements TransportInterface
36
37
37
38
public function __construct (EventDispatcherInterface $ dispatcher = null , LoggerInterface $ logger = null )
38
39
{
39
- $ this ->dispatcher = $ dispatcher ;
40
+ $ this ->dispatcher = LegacyEventDispatcherProxy:: decorate ( $ dispatcher) ;
40
41
$ this ->logger = $ logger ?: new NullLogger ();
41
42
}
42
43
You can’t perform that action at this time.
0 commit comments