swarrot / SwarrotBundle

A symfony bundle for swarrot integration
MIT License
89 stars 59 forks source link

Reset application after each consummed message #170

Closed pvgnd closed 4 years ago

pvgnd commented 4 years ago

As of Symfony 4.4, we can reset application ($this->getApplication()->reset();) in a Symfony Command.

This is usefull to reset Monolog (when finger crossed is used for example), and free resources while waiting for messages.

odolbeau commented 4 years ago

Hi @pvgnd It an excellent idea & @lyrixx suggested it too https://github.com/swarrot/swarrot/issues/193

Don't hesitate to propose an implementation. :)