I have a problem with Symfony messenger, I have installed the redis extension, Symfony Messenger Redis package and the problem occurs when the command "php bin/console messenger:consume async" is executed and an error is generated " php.CRITICAL: Uncaught Error: Undefined constant "SIGTERM"", transport and routing are already configured.
file: config/packages/messenger.yaml
framework:
messenger:
transports:
async: '%env(MESSENGER_TRANSPORT_DSN)%'
routing:
App\Message\SendMailMessage: async
The redis extension is already installed. Does anyone have a solution to this problem?
Installed packages
Symfony v6.3.3 Symfony/Messenger v6.3.2 Symfony/Redis-Messenger v6.3.5
PHP 8.2.8
I have uninstalled the packages and installed them again and the problem still occurs, the transports and messenger routes have been configured, but it still does not work.
Be sure to have
pcntl
extension installed and enabled in your environment.