QuestionHelper
class QuestionHelper extends Helper
The QuestionHelper class provides helpers to interact with the user.
Methods
from Helper
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
from Helper
static
from Helper
string
ask(InputInterface $input, OutputInterface $output, Question $question)
Asks a question to the user.
setInputStream(resource $stream)
Sets the input stream to read from when interacting with the user.
resource
getInputStream()
Returns the helper's input stream.
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 30
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
in Helper at line line 52
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
in Helper at line line 61
static
formatTime($secs)
in Helper at line line 88
static
formatMemory($memory)
in Helper at line line 105
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
at line line 45
string
ask(InputInterface $input, OutputInterface $output, Question $question)
Asks a question to the user.
at line line 75
setInputStream(resource $stream)
Sets the input stream to read from when interacting with the user.
This is mainly useful for testing purpose.
at line line 89
resource
getInputStream()
Returns the helper's input stream.
at line line 97
string
getName()
Returns the canonical name of this helper.