Run Console Command from a Controller in 3.7


#1

Hi, i recently updated to 3.7 I created some Console Commands and i need to call them from a controller.
In previous CakePhp ShellDispatcher was the way, now i can’t figure out how i can achieve the same purpose.

Thanks.
Fabio.


#2

check this out: https://github.com/dereuromark/cakephp-queue

add jobs from your controller action, worker picks up the job (task) which can in-turn run code or dispatch shells.