Gets the default helper set with the helpers that should always be available.
protected getDefaultHelperSet ( ) : Symfony\Component\Console\Helper\HelperSet | ||
return | Symfony\Component\Console\Helper\HelperSet | A HelperSet instance |
use Symfony\Component\Console\Application; $application = new Application(); $helperSet = $application->getDefaultHelperSet();
use Symfony\Component\Console\Application; use Symfony\Component\Console\Helper\ProgressBar; $application = new Application(); $helperSet = $application->getDefaultHelperSet(); $helperSet->set(new ProgressBar());In this example, we not only get the default helper set but also add a new ProgressBar helper to it using the set method. Package Library: Symfony Console Component.
protected getDefaultHelperSet ( ) : Symfony\Component\Console\Helper\HelperSet | ||
return | Symfony\Component\Console\Helper\HelperSet | A HelperSet instance |