コード例 #1
0
ファイル: Application.php プロジェクト: modera/module
 /**
  * Initializes all the composer commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\ClientCommand();
     $commands[] = new Command\PackageCommand();
     return $commands;
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 protected function getDefaultCommands()
 {
     // Keep the core default commands to have the HelpCommand
     // which is used when using the --help option
     $defaultCommands = parent::getDefaultCommands();
     $defaultCommands[] = new UpdateCommand();
     return $defaultCommands;
 }