Phpmig\Console\Command\AbstractCommand::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->addOption('--set', '-s', InputOption::VALUE_REQUIRED, 'The phpmig.sets key');
        $this->addOption('--bootstrap', '-b', InputOption::VALUE_REQUIRED, 'The bootstrap file to load');
    }

Usage Example

Example #1
0
    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('down')->addArgument('version', InputArgument::REQUIRED, 'The version number for the migration')->setDescription('Revert a specific migration')->setHelp(<<<EOT
The <info>down</info> command reverts a specific migration

<info>phpmig down 20111018185412</info>

EOT
);
    }
All Usage Examples Of Phpmig\Console\Command\AbstractCommand::configure