public function __construct($name, $description, $mode = 0, $default = null) { parent::__construct($name, $description, $mode, $default); $this->setTransformer(function ($value) use($name) { if (strlen($value) === 0) { throw new InvalidValueException(sprintf("Empty string for %s", $name)); } return $value; }); }
public function __construct($name, $description, $mode = 0, $default = null) { parent::__construct($name, $description, $mode, $default); $this->setTransformer(array($this, 'transformInput')); }
public function requestValue(ConsoleInputInterface $input, OutputInterface $output, HelperSet $helperSet) { return parent::requestValue($input, $output, $helperSet); }