Category: messenger

How disable log "info" on middleware of Symfony Messenger?

How I can disable log of type INFO sent by SendMessageMiddleware of Symfony Messenger component? symfony/messenger/Middleware/SendMessageMiddleware.php: $this->logger->info(‘Received message {class}’, $context); Source: Symfony Questions

Symfony 4.4 Messenger – How to get the last insert id when using the doctrine transaction middleware?

I want to use the doctrine_transaction middleware for symfony messenger and, according to the doc, this middleware take care to flush all persisted datas in the message. It’s fine but how can i retrieve the insert Id ? For example,…