12 lines
481 B
PHP
12 lines
481 B
PHP
<?php
|
|
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
|
|
|
//Ensure that all lines are aligned to the begin of the first line in a multi-line block
|
|
return function (InputInterface $input, OutputInterface $output) {
|
|
$output = new SymfonyStyle($input, $output);
|
|
$output->block(['Custom block', 'Second custom block line'], 'CUSTOM', 'fg=white;bg=green', 'X ', true);
|
|
};
|