Class Symfony\Component\Console\Input\StringInput

InheritanceSymfony\Component\Console\Input\StringInput » Symfony\Component\Console\Input\ArgvInput » Symfony\Component\Console\Input\Input
ImplementsSymfony\Component\Console\Input\InputInterface

StringInput represents an input provided as a string.

Usage:

$input = new StringInput('foo --bar="foobar"');

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
REGEX_QUOTED_STRING '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\')' Symfony\Component\Console\Input\StringInput
REGEX_STRING '([^\s]+?)(?:\s|(? Symfony\Component\Console\Input\StringInput

Method Details

__construct() public method

Constructor.

public void __construct ( $input )
$input string

An array of parameters from the CLI (in the argv format)