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

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('migrations:generate')->setDescription('Generate a blank migration class.')->addOption('editor-cmd', null, InputOption::VALUE_OPTIONAL, 'Open file with this command upon creation.')->setHelp(<<<EOT
The <info>%command.name%</info> command generates a blank migration class:

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

You can optionally specify a <comment>--editor-cmd</comment> option to open the generated file in your favorite editor:

    <info>%command.full_name% --editor-cmd=mate</info>
EOT
);
        parent::configure();
    }

Usage Example

示例#1
0
    protected function configure()
    {
        parent::configure();
        $this->setName('migrations:diff')->setDescription('Generate a migration by comparing your current database to your mapping information.')->setHelp(<<<EOT
The <info>%command.name%</info> command generates a migration by comparing your current database to your mapping information:

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

You can optionally specify a <comment>--editor-cmd</comment> option to open the generated file in your favorite editor:

    <info>%command.full_name% --editor-cmd=mate</info>
EOT
)->addOption('filter-expression', null, InputOption::VALUE_OPTIONAL, 'Tables which are filtered by Regular Expression.');
    }
All Usage Examples Of Doctrine\DBAL\Migrations\Tools\Console\Command\GenerateCommand::configure