src/Viserio/Component/Console/Command/AbstractCommand.php
public function alert(string $string): void
    {
        $length = \mb_strlen(\strip_tags($string)) + 12;

        $this->comment(\str_repeat('*', $length));
        $this->comment('*     ' . $string . '     *');
        $this->comment(\str_repeat('*', $length));

        $this->getOutput()->newLine();
    }
public function alert(string $string): void
    {
        $length = \mb_strlen(\strip_tags($string)) + 12;

        $this->comment(\str_repeat('*', $length));
        $this->comment('*     ' . $string . '     *');
        $this->comment(\str_repeat('*', $length));

        $this->getOutput()->newLine();
    }
Write a string in an alert box.

@param string $string

@return void