mmucklo / DtcQueueBundle

Symfony2/3/4/5 Queue Bundle (for background jobs) supporting Mongo (Doctrine ODM), Mysql (and any Doctrine ORM), RabbitMQ, Beanstalkd, Redis, and ... {write your own}
MIT License
120 stars 38 forks source link

Command calls undefined `getContainer` function #138

Open carlos-granados opened 3 years ago

carlos-granados commented 3 years ago

The setLoggerService function in the run command calls the getContainer() function which no longer exists because the command no longer extends the ContainerAwareCommand class

mmucklo commented 3 years ago

@carlos-granados can you try with the latest version?

carlos-granados commented 3 years ago

@mmucklo yes, all good now :-)

carlos-granados commented 3 years ago

@mmucklo Actually, it would be useful if the runLoop, logger and container properties were protected instead of private. This would allow us to easily extend this command.

carlos-granados commented 3 years ago

Either that or add some getters