You are here

public function HelperSet::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/HelperSet.php \Symfony\Component\Console\Helper\HelperSet::__construct()

Constructor.

Parameters

Helper[] $helpers An array of helper.:

File

vendor/symfony/console/Helper/HelperSet.php, line 31

Class

HelperSet
HelperSet represents a set of helpers to be used with a command.

Namespace

Symfony\Component\Console\Helper

Code

public function __construct(array $helpers = array()) {
  foreach ($helpers as $alias => $helper) {
    $this
      ->set($helper, is_int($alias) ? null : $alias);
  }
}