本文整理汇总了PHP中Command::configure方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::configure方法的具体用法?PHP Command::configure怎么用?PHP Command::configure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Command
的用法示例。
在下文中一共展示了Command::configure方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: shellCommandString
private static function shellCommandString($string)
{
$command = new Command();
$command->configure($string);
$shellCommand = new ShellCommand($command);
return strval($shellCommand);
}
示例2: configure
protected function configure()
{
parent::configure();
$this->setName('list-keys')->setDescription('Lists the set of keys in the key store');
}
示例3: configure
/**
* @see http://symfony.com/doc/current/components/console/introduction.html#creating-a-basic-command
*/
protected function configure()
{
parent::configure();
$this->setName('project:sync-remote-database')->setDescription('Sync remote database between sites')->addArgument('remote-alias', InputArgument::REQUIRED, 'Which drush alias do you wish to pull from?')->addArgument('target-alias', InputArgument::REQUIRED, 'Which drush alias do you wish to deploy to?');
}
示例4: command
private static function command($commandString = null)
{
$command = new Command();
return $command->configure($commandString);
}