File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Symfony/Component/Notifier/Transport Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Notifier \Transport ;
8754
code>
13
13
14
+ use Symfony \Component \EventDispatcher \Event ;
14
15
use Symfony \Component \EventDispatcher \LegacyEventDispatcherProxy ;
15
16
use Symfony \Component \Notifier \Event \MessageEvent ;
16
17
use Symfony \Component \Notifier \Message \MessageInterface ;
@@ -27,7 +28,7 @@ class NullTransport implements TransportInterface
27
28
28
29
public function __construct (EventDispatcherInterface $ dispatcher = null )
29
30
{
30
- $ this ->dispatcher = LegacyEventDispatcherProxy::decorate ($ dispatcher );
31
+ $ this ->dispatcher = class_exists (Event::class) ? LegacyEventDispatcherProxy::decorate ($ dispatcher ) : $ dispatcher ;
31
32
}
32
33
33
34
public function send (MessageInterface $ message ): void
You can’t perform that action at this time.
0 commit comments