vendor/symfony/messenger/EventListener/StopWorkerOnSigtermSignalListener.php line 17

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\Messenger\EventListener;
  11. use Psr\Log\LoggerInterface;
  12. use Symfony\Component\Console\Command\SignalableCommandInterface;
  13. trigger_deprecation('symfony/messenger', '6.3', '"%s" is deprecated, use the "%s" instead.', StopWorkerOnSigtermSignalListener::class, SignalableCommandInterface::class);
  14. /**
  15. * @author Tobias Schultze <http://tobion.de>
  16. *
  17. * @deprecated since Symfony 6.3, use the {@see SignalableCommandInterface} instead
  18. */
  19. class StopWorkerOnSigtermSignalListener extends StopWorkerOnSignalsListener
  20. {
  21. public function __construct(?LoggerInterface $logger = null)
  22. {
  23. parent::__construct(\extension_loaded('pcntl') ? [\SIGTERM] : [], $logger);
  24. }
  25. }