vendor/symfony/event-dispatcher/LegacyEventDispatcherProxy.php line 16

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\EventDispatcher;
  11. use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
  12. trigger_deprecation('symfony/event-dispatcher''5.1''%s is deprecated, use the event dispatcher without the proxy.'LegacyEventDispatcherProxy::class);
  13. /**
  14.  * A helper class to provide BC/FC with the legacy signature of EventDispatcherInterface::dispatch().
  15.  *
  16.  * @author Nicolas Grekas <p@tchwork.com>
  17.  *
  18.  * @deprecated since Symfony 5.1
  19.  */
  20. final class LegacyEventDispatcherProxy
  21. {
  22.     public static function decorate(?EventDispatcherInterface $dispatcher): ?EventDispatcherInterface
  23.     {
  24.         return $dispatcher;
  25.     }
  26. }