Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('migrations:status')->setDescription('View the status of a set of migrations.')->addOption('show-versions', null, InputOption::VALUE_NONE, 'This will display a list of all available migrations and their status')->setHelp(<<<EOT
The <info>%command.name%</info> command outputs the status of a set of migrations:

    <info>%command.full_name%</info>

You can output a list of all available migrations and their status with <comment>--show-versions</comment>:

    <info>%command.full_name% --show-versions</info>
EOT
);
        parent::configure();
    }

Usage Example

Ejemplo n.º 1
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }
All Usage Examples Of Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::configure