getDefaultCommands() защищенный метод

Gets the default commands that should always be available.
protected getDefaultCommands ( ) : Command[]
Результат Symfony\Component\Console\Command\Command[] An array of default Command instances
Пример #1
0
 /**
  * Initializes all the composer commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\UseSortCommand();
     $commands[] = new Command\HeaderCommand();
     return $commands;
 }
Пример #2
0
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new QueryCommand();
     $commands[] = new AlertCommand();
     return $commands;
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $default_commands = parent::getDefaultCommands();
     $default_commands[] = new DbDumpCommand();
     $default_commands[] = new DbImportCommand();
     return $default_commands;
 }
Пример #4
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new CacheToolCommand\SelfUpdateCommand();
     $commands[] = new CacheToolCommand\ApcBinDumpCommand();
     $commands[] = new CacheToolCommand\ApcBinLoadCommand();
     $commands[] = new CacheToolCommand\ApcCacheClearCommand();
     $commands[] = new CacheToolCommand\ApcCacheInfoCommand();
     $commands[] = new CacheToolCommand\ApcCacheInfoFileCommand();
     $commands[] = new CacheToolCommand\ApcKeyDeleteCommand();
     $commands[] = new CacheToolCommand\ApcKeyExistsCommand();
     $commands[] = new CacheToolCommand\ApcKeyFetchCommand();
     $commands[] = new CacheToolCommand\ApcKeyStoreCommand();
     $commands[] = new CacheToolCommand\ApcSmaInfoCommand();
     $commands[] = new CacheToolCommand\ApcRegexpDeleteCommand();
     $commands[] = new CacheToolCommand\OpcacheConfigurationCommand();
     $commands[] = new CacheToolCommand\OpcacheResetCommand();
     $commands[] = new CacheToolCommand\OpcacheStatusCommand();
     $commands[] = new CacheToolCommand\OpcacheStatusScriptsCommand();
     $commands[] = new CacheToolCommand\OpcacheInvalidateScriptsCommand();
     $commands[] = new CacheToolCommand\StatCacheClearCommand();
     $commands[] = new CacheToolCommand\StatRealpathGetCommand();
     $commands[] = new CacheToolCommand\StatRealpathSizeCommand();
     return $commands;
 }
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     // Even though this is a single command, keep the HelpCommand (--help).
     $default_commands = parent::getDefaultCommands();
     $default_commands[] = new GenerateProxyClassCommand($this->proxyBuilder);
     return $default_commands;
 }
Пример #6
0
 /**
  * @return array|\Symfony\Component\Console\Command\Command[]
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new CreateCommand();
     $commands[] = new ListCurvesCommand();
     return $commands;
 }
Пример #7
0
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new DiffCommand();
     $commands[] = new LogCommand();
     return $commands;
 }
 /**
  * get all default commands
  *
  * @return \Symfony\Component\Console\Command\Command[]
  */
 protected function getDefaultCommands()
 {
     $defaultCommands = parent::getDefaultCommands();
     $defaultCommands[] = new Command\Generate();
     $defaultCommands[] = new Command\Test();
     return $defaultCommands;
 }
Пример #9
0
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\BootstrapCommand();
     $commands[] = new Command\WebpackCommand();
     return $commands;
 }
Пример #10
0
 public function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     // vagrant commands
     $commands[] = new Console\Command\UpCommand();
     $commands[] = new Console\Command\SuspendCommand();
     $commands[] = new Console\Command\ResumeCommand();
     $commands[] = new Console\Command\HaltCommand();
     $commands[] = new Console\Command\ReloadCommand();
     $commands[] = new Console\Command\ProvisionCommand();
     $commands[] = new Console\Command\DestroyCommand();
     $commands[] = new Console\Command\SshCommand();
     $commands[] = new Console\Command\StatusCommand();
     // breeze management tools
     $commands[] = new Console\Command\DbCreateCommand();
     $commands[] = new Console\Command\DbPullCommand();
     $commands[] = new Console\Command\DbDropCommand();
     $commands[] = new Console\Command\DbDumpCommand();
     $commands[] = new Console\Command\SiteEnableCommand();
     $commands[] = new Console\Command\SiteCreateCommand();
     $commands[] = new Console\Command\SiteDeleteCommand();
     $commands[] = new Console\Command\SiteListCommand();
     $commands[] = new Console\Command\SiteSyncUploadsCommand();
     $commands[] = new Console\Command\SitePullRsyncCommand();
     $commands[] = new Console\Command\WebReloadCommand();
     $commands[] = new Console\Command\WebRestartCommand();
     // breeze utilities
     $commands[] = new Console\Command\InitCommand();
     $commands[] = new Console\Command\ConfigSshCommand();
     $commands[] = new Console\Command\EditCommand();
     // autocompletion
     $commands[] = new \Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand();
     return $commands;
 }
Пример #11
0
 /**
  * {@inheritdoc}
  */
 public function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new DetailsCommand();
     $commands[] = new ComposerCommand();
     return $commands;
 }
Пример #12
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\GenerateTypesCommand();
     $commands[] = new Command\GenerateClassmapCommand();
     return $commands;
 }
Пример #13
0
 /**
  * Initializes all the composer commands
  *
  * @return \Symfony\Component\Console\Command\Command[]
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new FixerCommand();
     $commands[] = new RemoverCommand();
     return $commands;
 }
Пример #14
0
 /**
  * Gets the default commands that should always be available.
  *
  * @return Command[] An array of default Command instances
  */
 public function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new PreviewCommand();
     $commands[] = new CollectCommand();
     return $commands;
 }
Пример #15
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     // Even though this is a single command, keep the HelpCommand (--help).
     $default_commands = parent::getDefaultCommands();
     $default_commands[] = new DbDumpCommand();
     return $default_commands;
 }
Пример #16
0
 protected function getDefaultCommands()
 {
     $command = new Command();
     $defaultCommands = parent::getDefaultCommands();
     array_push($defaultCommands, $command);
     return $defaultCommands;
 }
Пример #17
0
 /**
  * Initializes all the composer commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\AboutCommand();
     $commands[] = new Command\StatusCommand();
     $commands[] = new Command\BalanceCommand();
     // $commands[] = new Command\DependsCommand();
     // $commands[] = new Command\InitCommand();
     // $commands[] = new Command\InstallCommand();
     // $commands[] = new Command\CreateProjectCommand();
     // $commands[] = new Command\UpdateCommand();
     // $commands[] = new Command\SearchCommand();
     // $commands[] = new Command\ValidateCommand();
     // $commands[] = new Command\ShowCommand();
     // $commands[] = new Command\SuggestsCommand();
     // $commands[] = new Command\RequireCommand();
     // $commands[] = new Command\DumpAutoloadCommand();
     // $commands[] = new Command\StatusCommand();
     // $commands[] = new Command\ArchiveCommand();
     // $commands[] = new Command\DiagnoseCommand();
     // $commands[] = new Command\RunScriptCommand();
     // $commands[] = new Command\LicensesCommand();
     // $commands[] = new Command\GlobalCommand();
     // $commands[] = new Command\ClearCacheCommand();
     // $commands[] = new Command\RemoveCommand();
     // $commands[] = new Command\HomeCommand();
     // if ('phar:' === substr(__FILE__, 0, 5)) {
     // $commands[] = new Command\SelfUpdateCommand();
     // }
     return $commands;
 }
Пример #18
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Commands\Init();
     $commands[] = new Commands\Generate();
     return $commands;
 }
Пример #19
0
 /**
  * Gets the default commands that should always be available.
  *
  * @return Command[] An array of default Command instances
  */
 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 CrudCommand();
     return $defaultCommands;
 }
Пример #20
0
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = $this->add(new CompareCommand());
     $commands[] = $this->add(new SelfUpdateCommand());
     return $commands;
 }
Пример #21
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = $this->generateCommand;
     $commands[] = $this->pluginCommand;
     return $commands;
 }
Пример #22
0
 /**
  * Initializes all necessary commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\AboutCommand();
     $commands[] = new Command\CheckCommand();
     return $commands;
 }
Пример #23
0
 protected function getDefaultCommands()
 {
     $this->setDefaultCommand('phpact');
     $commands = parent::getDefaultCommands();
     $commands[] = new Command();
     return $commands;
 }
Пример #24
0
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\Templator();
     $commands[] = new Command\Tc();
     return $commands;
 }
Пример #25
0
 /**
  * Initializes all the composer commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new ShowCommand($this->getComposerAccessor());
     $this->setDefaultCommand(ShowCommand::NAME);
     return $commands;
 }
Пример #26
0
 /**
  * Init commands
  *
  * @return Command[] An array of default Command instances
  */
 public function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new \Inet\Neuralyzer\Console\Commands\AnonRunCommand();
     $commands[] = new \Inet\Neuralyzer\Console\Commands\ConfigGenerateCommand();
     return $commands;
 }
Пример #27
0
 /**
  * Gets the default commands that should always be available.
  *
  * @return Command[] An array of default Command instances
  */
 protected function getDefaultCommands()
 {
     // Adds HelpCommand for --help
     $defaultCommands = parent::getDefaultCommands();
     $defaultCommands[] = new RunCommand();
     return $defaultCommands;
 }
Пример #28
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\InitializeCommand();
     $commands[] = new Command\UpdateCommand();
     return $commands;
 }
Пример #29
0
 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $defaultCommands = parent::getDefaultCommands();
     $generateCommand = new GenerateCommand();
     $generateCommand->setDispatcher($this->dispatcher);
     $defaultCommands[] = $generateCommand;
     return $defaultCommands;
 }
 /**
  * Gets the default commands that should always be available.
  *
  * @return array An array of default Command instances
  */
 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 ValidateBranchAlias();
     return $defaultCommands;
 }