public function StringInput::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Input/StringInput.php \Symfony\Component\Console\Input\StringInput::__construct()
Constructor.
Parameters
string $input An array of parameters from the CLI (in the argv format):
InputDefinition $definition A InputDefinition instance:
Overrides ArgvInput::__construct
Deprecated
The second argument is deprecated as it does not work (will be removed in 3.0), use 'bind' method instead
File
- vendor/
symfony/ console/ Input/ StringInput.php, line 36
Class
- StringInput
- StringInput represents an input provided as a string.
Namespace
Symfony\Component\Console\InputCode
public function __construct($input, InputDefinition $definition = null) {
if ($definition) {
@trigger_error('The $definition argument of the ' . __METHOD__ . ' method is deprecated and will be removed in 3.0. Set this parameter with the bind() method instead.', E_USER_DEPRECATED);
}
parent::__construct(array(), null);
$this
->setTokens($this
->tokenize($input));
if (null !== $definition) {
$this
->bind($definition);
}
}