Skip to content

Commit 9c93df8

Browse files
committed
[EventDispatcher] Deprecate LegacyEventDispatcherProxy.
1 parent 0079b75 commit 9c93df8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.1.0
5+
-----
6+
7+
* The `LegacyEventDispatcherProxy` class has been deprecated.
8+
49
5.0.0
510
-----
611

LegacyEventDispatcherProxy.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313

1414
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1515

16+
@trigger_error(sprintf('%s is deprecated since Symfony 5.1, use the event dispatcher without the proxy.', LegacyEventDispatcherProxy::class), E_USER_DEPRECATED);
17+
1618
/**
1719
* A helper class to provide BC/FC with the legacy signature of EventDispatcherInterface::dispatch().
1820
*
19-
* This class should be deprecated in Symfony 5.1
20-
*
2121
* @author Nicolas Grekas <[email protected]>
22+
*
23+
* @deprecated since Symfony 5.1.
2224
*/
2325
final class LegacyEventDispatcherProxy
2426
{

0 commit comments

Comments
 (0)