本文整理汇总了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;
}
示例2: getDefaultCommands
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new QueryCommand();
$commands[] = new AlertCommand();
return $commands;
}
示例3: getDefaultCommands
/**
* {@inheritdoc}
*/
protected function getDefaultCommands()
{
$default_commands = parent::getDefaultCommands();
$default_commands[] = new DbDumpCommand();
$default_commands[] = new DbImportCommand();
return $default_commands;
}
示例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;
}
示例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;
}
示例6: getDefaultCommands
/**
* @return array|\Symfony\Component\Console\Command\Command[]
*/
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new CreateCommand();
$commands[] = new ListCurvesCommand();
return $commands;
}
示例7: getDefaultCommands
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new DiffCommand();
$commands[] = new LogCommand();
return $commands;
}
示例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;
}
示例9: getDefaultCommands
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new Command\BootstrapCommand();
$commands[] = new Command\WebpackCommand();
return $commands;
}
示例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;
}
示例11: getDefaultCommands
/**
* {@inheritdoc}
*/
public function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new DetailsCommand();
$commands[] = new ComposerCommand();
return $commands;
}
示例12: getDefaultCommands
/**
* {@inheritdoc}
*/
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new Command\GenerateTypesCommand();
$commands[] = new Command\GenerateClassmapCommand();
return $commands;
}
示例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;
}
示例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;
}
示例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;
}