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); https://github.com/symfony/messenger/blob/9c036a45bcf837dc38f0db93095a45a21096dd63/Middleware/SendMessageMiddleware.php#L57 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,…