private static function shellCommandString($string) { $command = new Command(); $command->configure($string); $shellCommand = new ShellCommand($command); return strval($shellCommand); }
protected function configure() { parent::configure(); $this->setName('list-keys')->setDescription('Lists the set of keys in the key store'); }
/** * @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?'); }
private static function command($commandString = null) { $command = new Command(); return $command->configure($commandString); }