2 namespace TYPO3\CMS\Extbase\Mvc\Cli;
57 $this->
output =
new SymfonyConsoleOutput();
84 public function output($text, array $arguments = array())
86 if ($arguments !== array()) {
87 $text = vsprintf($text, $arguments);
89 $this->
output->write($text);
101 public function outputLine($text =
'', array $arguments = array())
103 $this->
output($text . PHP_EOL, $arguments);
116 public function outputFormatted($text =
'', array $arguments = array(), $leftPadding = 0)
118 $lines = explode(PHP_EOL, $text);
119 foreach ($lines as $line) {
120 $formattedText = str_repeat(
' ', $leftPadding) . wordwrap($line, $this->
getMaximumLineLength() - $leftPadding, PHP_EOL . str_repeat(
' ', $leftPadding),
true);
121 $this->
outputLine($formattedText, $arguments);
134 if ($headers !== null) {
152 public function select($question, $choices, $default = null, $multiSelect =
false, $attempts =
false)
154 return $this->
getDialogHelper()->select($this->
output, $question, $choices, $default, $attempts,
'Value "%s" is invalid', $multiSelect);
166 public function ask($question, $default = null, array $autocomplete = null)
213 public function askAndValidate($question, $validator, $attempts =
false, $default = null, array $autocomplete = null)
215 return $this->
getDialogHelper()->askAndValidate($this->
output, $question, $validator, $attempts, $default, $autocomplete);
235 return $this->
getDialogHelper()->askHiddenResponseAndValidate($this->
output, $question, $validator, $attempts, $fallback);
292 if ($this->dialogHelper === null) {
295 $this->dialogHelper->setHelperSet($helperSet);
307 if ($this->progressHelper === null) {
320 if ($this->tableHelper === null) {