I\'m using Symfony\'s console component to write a CLI app in PHP. To write output I use the injected Symfony\\Component\\Console\\Output\\OutputInterface $output
Symfony\\Component\\Console\\Output\\OutputInterface $output