Gush\Application::getDefaultHelperSet PHP Method

getDefaultHelperSet() protected method

protected getDefaultHelperSet ( )
    protected function getDefaultHelperSet()
    {
        $helperSet = parent::getDefaultHelperSet();
        $helperSet->set(new Helpers\FilesystemHelper());
        $helperSet->set(new Helpers\TextHelper());
        $helperSet->set(new Helpers\GushQuestionHelper());
        $helperSet->set(new Helpers\StyleHelper($helperSet->get('gush_question')));
        $helperSet->set(new Helpers\TableHelper());
        $helperSet->set(new Helpers\ProcessHelper());
        $helperSet->set(new Helpers\EditorHelper());
        $helperSet->set(new Helpers\GitConfigHelper($helperSet->get('process'), $this));
        $helperSet->set(new Helpers\GitHelper($helperSet->get('process'), $helperSet->get('git_config'), $helperSet->get('filesystem')));
        $helperSet->set(new Helpers\TemplateHelper($helperSet->get('gush_style'), $this));
        $helperSet->set(new Helpers\MetaHelper($this->getSupportedMetaFiles()));
        $helperSet->set(new Helpers\DownloadHelper($helperSet->get('filesystem')));
        $helperSet->set(new Helpers\AutocompleteHelper());
        return $helperSet;
    }

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  *
  * Overwritten so the helpers can be mocked.
  * This method is called within the constructor so setting it later
  * will not give the expected result.
  *
  * @return \Symfony\Component\Console\Helper\HelperSet
  */
 protected function getDefaultHelperSet()
 {
     $helperSet = parent::getDefaultHelperSet();
     $callback = $this->helperSetManipulator;
     $callback($helperSet);
     return $helperSet;
 }