No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LegacyEventDispatcherProxy.php 882B

12345678910111213141516171819202122232425262728293031
  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. }