Set a helper set to be used with the command.
public setHelperSet ( Symfony\Component\Console\Helper\HelperSet $helperSet ) | ||
$helperSet | Symfony\Component\Console\Helper\HelperSet | The helper set |
use Symfony\Component\Console\Application; use Symfony\Component\Console\Helper\HelperSet; $application = new Application(); $helperSet = new HelperSet(); $application->setHelperSet($helperSet);This example sets a new helper set instance for the Console Application instance, which can then be used to add, override or customize its various helpers. This method belongs to the Symfony Console component, which is a package library for PHP. It provides a set of tools for building console commands and applications in PHP, allowing developers to easily define and execute CLI commands from their code.
public setHelperSet ( Symfony\Component\Console\Helper\HelperSet $helperSet ) | ||
$helperSet | Symfony\Component\Console\Helper\HelperSet | The helper set |