0 follower

Final Class Yiisoft\Db\Migration\Informer\ConsoleMigrationInformer

InheritanceYiisoft\Db\Migration\Informer\ConsoleMigrationInformer
ImplementsYiisoft\Db\Migration\Informer\MigrationInformerInterface

Writes migration process informational messages into console.

Method Details

Hide inherited methods

beginCommand() public method

public beginCommand( string $message ): void
$message string

                public function beginCommand(string $message): void
{
    $this->io?->write('    > ' . $message . ' ...');
}

            
beginCreateHistoryTable() public method

public beginCreateHistoryTable( string $message ): void
$message string

                public function beginCreateHistoryTable(string $message): void
{
    $this->io?->write($message);
}

            
endCommand() public method

public endCommand( string $message ): void
$message string

                public function endCommand(string $message): void
{
    $this->io?->writeln(' ' . $message);
}

            
endCreateHistoryTable() public method

public endCreateHistoryTable( string $message ): void
$message string

                public function endCreateHistoryTable(string $message): void
{
    $this->io?->writeln("\t<fg=green>$message</>");
}

            
setIo() public method

public setIo( \Symfony\Component\Console\Style\SymfonyStyle|null $io ): void
$io \Symfony\Component\Console\Style\SymfonyStyle|null

                public function setIo(?SymfonyStyle $io): void
{
    $this->io = $io;
}