本文整理汇总了PHP中Symfony\Component\Console\Application::getDefaultHelperSet方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::getDefaultHelperSet方法的具体用法?PHP Application::getDefaultHelperSet怎么用?PHP Application::getDefaultHelperSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\Console\Application
的用法示例。
在下文中一共展示了Application::getDefaultHelperSet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDefaultHelperSet
/**
* {@inheritdoc}
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new Config());
$helperSet->set(new YoHelper());
return $helperSet;
}
示例2: getDefaultHelperSet
protected function getDefaultHelperSet()
{
$container = $this->getContainer();
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new Helper\PathsHelper($container->get('config'), $container->get('filesystem')));
return $helperSet;
}
示例3: getDefaultHelperSet
protected function getDefaultHelperSet()
{
$container = $this->getContainer();
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new Helper\PathsHelper($container->get('config'), $container->get('filesystem')));
$helperSet->set(new Helper\TaskRunnerHelper($container->get('task_runner'), $container->get('event_dispatcher')));
return $helperSet;
}
示例4: getDefaultHelperSet
/**
* @override
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
if ('master' !== $this->getVersion()) {
$helperSet->set(new Amend\Helper());
}
return $helperSet;
}
示例5: getDefaultHelperSet
protected function getDefaultHelperSet()
{
$container = $this->getContainer();
$helperSet = parent::getDefaultHelperSet();
$helperSet->set($this->initializeComposerHelper());
$helperSet->set(new Helper\PathsHelper($container->get('config'), $container->get('grumphp.util.filesystem'), $container->get('locator.external_command'), $this->getDefaultConfigPath()));
$helperSet->set(new Helper\TaskRunnerHelper($container->get('task_runner'), $container->get('event_dispatcher'), $container->get('config')));
return $helperSet;
}
示例6: getDefaultHelperSet
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new InitHelper());
$helperSet->set(new RequireHelper());
$helperSet->set(new PackageHelper());
$helperSet->set(new PathHelper());
return $helperSet;
}
示例7: getDefaultHelperSet
/**
* @override
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new Helper\ConfigurationHelper());
$helperSet->set(new Helper\PhpSecLibHelper());
if ('@' . 'git-version@' !== $this->getVersion()) {
$helperSet->set(new Amend\Helper());
}
return $helperSet;
}
示例8: getDefaultHelperSet
public function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new Console\Helper\DatabaseHelper());
$helperSet->set(new Console\Helper\SshConfigHelper());
$helperSet->set(new Console\Helper\ApacheHelper());
$helperSet->set(new Console\Helper\TwigHelper());
$helperSet->set(new Console\Helper\VagrantHelper());
$helperSet->set(new Console\Helper\ConfigHelper());
return $helperSet;
}
示例9: getDefaultHelperSet
/**
* {@inheritdoc}
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new PharUpdateHelper());
return $helperSet;
}
示例10: getDefaultHelperSet
/**
* {@inheritDoc}
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
// register helpers
return $helperSet;
}
示例11: getDefaultHelperSet
/**
* {@inheritDoc}
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
$helperSet->set(new \Composer\Command\Helper\DialogHelper());
return $helperSet;
}
示例12: getDefaultHelperSet
/**
* {@inheritdoc}
*/
protected function getDefaultHelperSet()
{
$set = parent::getDefaultHelperSet();
$set->set(new DistinguishedNameHelper());
return $set;
}
示例13: getDefaultHelperSet
/**
* {@inheritdoc}
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
if (class_exists('Symfony\\Component\\Console\\Helper\\DialogHelper')) {
$helperSet->set(new \Bowerphp\Command\Helper\DialogHelper());
} else {
$helperSet->set(new \Bowerphp\Command\Helper\QuestionHelper());
}
return $helperSet;
}
示例14: getDefaultHelperSet
/**
* @{inheritdoc}
*/
protected function getDefaultHelperSet()
{
$helperSet = parent::getDefaultHelperSet();
if ('@' . 'git-version@' !== $this->getVersion()) {
$helperSet->set(new Amend\Helper());
}
$helperSet->set(new Helper\AutocompleteHelper());
return $helperSet;
}
示例15: getDefaultHelperSet
/**
* @inheritDoc
*/
protected function getDefaultHelperSet()
{
$helpers = parent::getDefaultHelperSet();
$helpers->set(new ConfigHelper($this));
return $helpers;
}