Summary
In this chapter, you learned about console commands and how to configure and execute them. You learned about the question helper and saw how to use different question classes to add interactivity features to our custom commands. Finally, we saw how to get a custom service (that is, mava_util
) and benefit from its methods in our custom commands.
There is a lot that we can do to decorate a custom command. Fortunately, Symfony comes with a complete documentation about how to do this, which you can find here:
http://symfony.com/doc/current/components/console/helpers/index.html.