当前位置: 首页>>代码示例>>PHP>>正文


PHP Application::getDefaultCommands方法代码示例

本文整理汇总了PHP中Symfony\Component\Console\Application::getDefaultCommands方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::getDefaultCommands方法的具体用法?PHP Application::getDefaultCommands怎么用?PHP Application::getDefaultCommands使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Symfony\Component\Console\Application的用法示例。


在下文中一共展示了Application::getDefaultCommands方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getDefaultCommands

 /**
  * Initializes all the composer commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\UseSortCommand();
     $commands[] = new Command\HeaderCommand();
     return $commands;
 }
开发者ID:hkdobrev,项目名称:php-formatter,代码行数:10,代码来源:Application.php

示例2: getDefaultCommands

 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new QueryCommand();
     $commands[] = new AlertCommand();
     return $commands;
 }
开发者ID:maidmaid,项目名称:cffie,代码行数:7,代码来源:Application.php

示例3: getDefaultCommands

 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $default_commands = parent::getDefaultCommands();
     $default_commands[] = new DbDumpCommand();
     $default_commands[] = new DbImportCommand();
     return $default_commands;
 }
开发者ID:sarahwillem,项目名称:OD8,代码行数:10,代码来源:DbToolsApplication.php

示例4: getDefaultCommands

 /**
  * {@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;
 }
开发者ID:behcetenuygun,项目名称:cachetool,代码行数:28,代码来源:Application.php

示例5: getDefaultCommands

 /**
  * {@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;
 }
开发者ID:sarahwillem,项目名称:OD8,代码行数:10,代码来源:GenerateProxyClassApplication.php

示例6: getDefaultCommands

 /**
  * @return array|\Symfony\Component\Console\Command\Command[]
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new CreateCommand();
     $commands[] = new ListCurvesCommand();
     return $commands;
 }
开发者ID:afk11,项目名称:git-deploy-key,代码行数:10,代码来源:Application.php

示例7: getDefaultCommands

 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new DiffCommand();
     $commands[] = new LogCommand();
     return $commands;
 }
开发者ID:sminnee,项目名称:composer-diff,代码行数:7,代码来源:Application.php

示例8: getDefaultCommands

 /**
  * 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;
 }
开发者ID:basuritas-php,项目名称:phpunitgenerator,代码行数:12,代码来源:Application.php

示例9: getDefaultCommands

 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\BootstrapCommand();
     $commands[] = new Command\WebpackCommand();
     return $commands;
 }
开发者ID:gitiki,项目名称:gitiki,代码行数:7,代码来源:Console.php

示例10: getDefaultCommands

 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;
 }
开发者ID:clickrain,项目名称:breeze,代码行数:34,代码来源:Application.php

示例11: getDefaultCommands

 /**
  * {@inheritdoc}
  */
 public function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new DetailsCommand();
     $commands[] = new ComposerCommand();
     return $commands;
 }
开发者ID:eva,项目名称:eva,代码行数:10,代码来源:Application.php

示例12: getDefaultCommands

 /**
  * {@inheritdoc}
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\GenerateTypesCommand();
     $commands[] = new Command\GenerateClassmapCommand();
     return $commands;
 }
开发者ID:janvernieuwe,项目名称:soap-client,代码行数:10,代码来源:Application.php

示例13: getDefaultCommands

 /**
  * 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;
 }
开发者ID:nilportugues,项目名称:php_backslasher,代码行数:12,代码来源:Application.php

示例14: getDefaultCommands

 /**
  * 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;
 }
开发者ID:maslosoft,项目名称:maquinette,代码行数:12,代码来源:Application.php

示例15: getDefaultCommands

 /**
  * {@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;
 }
开发者ID:318io,项目名称:318-io,代码行数:10,代码来源:DbDumpApplication.php


注:本文中的Symfony\Component\Console\Application::getDefaultCommands方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。