public function HelperSet::set in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/HelperSet.php \Symfony\Component\Console\Helper\HelperSet::set()
Sets a helper.
Parameters
HelperInterface $helper The helper instance:
string $alias An alias:
1 call to HelperSet::set()
- HelperSet::__construct in vendor/symfony/ console/ Helper/ HelperSet.php 
- Constructor.
File
- vendor/symfony/ console/ Helper/ HelperSet.php, line 44 
Class
- HelperSet
- HelperSet represents a set of helpers to be used with a command.
Namespace
Symfony\Component\Console\HelperCode
public function set(HelperInterface $helper, $alias = null) {
  $this->helpers[$helper
    ->getName()] = $helper;
  if (null !== $alias) {
    $this->helpers[$alias] = $helper;
  }
  $helper
    ->setHelperSet($this);
}