function SymfonyStyle::block
Formats a message as a block of text.
7 calls to SymfonyStyle::block()
- SymfonyStyle::caution in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Formats a caution admonition.
- SymfonyStyle::comment in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Formats a command comment.
- SymfonyStyle::error in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Formats an error result bar.
- SymfonyStyle::info in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Formats an info message.
- SymfonyStyle::note in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Formats a note admonition.
File
-
vendor/
symfony/ console/ Style/ SymfonyStyle.php, line 63
Class
- SymfonyStyle
- Output decorator helpers for the Symfony Style Guide.
Namespace
Symfony\Component\Console\StyleCode
public function block(string|array $messages, ?string $type = null, ?string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = true) : void {
$messages = \is_array($messages) ? array_values($messages) : [
$messages,
];
$this->autoPrependBlock();
$this->writeln($this->createBlock($messages, $type, $style, $prefix, $padding, $escape));
$this->newLine();
}