We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Console controller like Symfony2

Can I create a console controller like Console Commands in Symfony2?

Can you explain it a bit more? Because I already implemented such a controller / bootstrap which works nearly like this.

https://symfony.com/doc/2.0/cookbook/console/console_command.html

Console component provides a new class type — Command. Commands like a Controllers has some Actions. The component also have a personal router schema. This is very useful for Cron routines, for manually interactive console management and so on. To run some Command we must run special file inside our application with several parameters such as command name and command data.