TYPO3  7.6
command_5.php
Go to the documentation of this file.
1 <?php
2 
6 
7 //Ensure has proper line ending before outputing a text block like with SymfonyStyle::listing() or SymfonyStyle::text()
8 return function (InputInterface $input, OutputInterface $output) {
9  $output = new SymfonyStyle($input, $output);
10 
11  $output->writeln('Lorem ipsum dolor sit amet');
12  $output->listing(array(
13  'Lorem ipsum dolor sit amet',
14  'consectetur adipiscing elit',
15  ));
16 
17  //Even using write:
18  $output->write('Lorem ipsum dolor sit amet');
19  $output->listing(array(
20  'Lorem ipsum dolor sit amet',
21  'consectetur adipiscing elit',
22  ));
23 
24  $output->write('Lorem ipsum dolor sit amet');
25  $output->text(array(
26  'Lorem ipsum dolor sit amet',
27  'consectetur adipiscing elit',
28  ));
29 };