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.

Get Mastering Symfony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.