コード例 #1
0
 private static function shellCommandString($string)
 {
     $command = new Command();
     $command->configure($string);
     $shellCommand = new ShellCommand($command);
     return strval($shellCommand);
 }
コード例 #2
0
ファイル: jwkstool.php プロジェクト: kelvinmo/simplejwt
 protected function configure()
 {
     parent::configure();
     $this->setName('list-keys')->setDescription('Lists the set of keys in the key store');
 }
コード例 #3
0
ファイル: SyncRemoteDatabase.php プロジェクト: andyhawks/bild
 /**
  * @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
0
 private static function command($commandString = null)
 {
     $command = new Command();
     return $command->configure($commandString);
 }