class DebugFormatterHelper extends Helper
Helps outputting debug information when running an external program from a command.
An external program can be a Process, an HTTP request, or anything else.
protected | $helperSet | from Helper |
setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. | from Helper | |
HelperSet | getHelperSet() Gets the helper set associated with this helper. | from Helper |
static int | strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. | from Helper |
static string | substr(string $string, int $from, int|null $length = null) Returns the subset of a string, using mb_substr if it is available. | from Helper |
static | formatTime($secs) | from Helper |
static | formatMemory($memory) | from Helper |
static | strlenWithoutDecoration(OutputFormatterInterface $formatter, $string) | from Helper |
static | removeDecoration(OutputFormatterInterface $formatter, $string) | from Helper |
string | start(string $id, string $message, string $prefix = 'RUN') Starts a debug formatting session. | |
string | progress(string $id, string $buffer, bool $error = false, string $prefix = 'OUT', string $errorPrefix = 'ERR') Adds progress to a formatting session. | |
string | stop(string $id, string $message, bool $successful, string $prefix = 'RES') Stops a formatting session. | |
string | getName() Returns the canonical name of this helper. |
Sets the helper set associated with this helper.
HelperSet | $helperSet |
Gets the helper set associated with this helper.
HelperSet | A HelperSet instance |
Returns the length of a string, using mb_strwidth if it is available.
string | $string | The string to check its length |
int | The length of the string |
Returns the subset of a string, using mb_substr if it is available.
string | $string | String to subset |
int | $from | Start offset |
int|null | $length | Length to read |
string | The string subset |
$secs |
$memory |
OutputFormatterInterface | $formatter | |
$string |
OutputFormatterInterface | $formatter | |
$string |
Starts a debug formatting session.
string | $id | The id of the formatting session |
string | $message | The message to display |
string | $prefix | The prefix to use |
string |
Adds progress to a formatting session.
string | $id | The id of the formatting session |
string | $buffer | The message to display |
bool | $error | Whether to consider the buffer as error |
string | $prefix | The prefix for output |
string | $errorPrefix | The prefix for error output |
string |
Stops a formatting session.
string | $id | The id of the formatting session |
string | $message | The message to display |
bool | $successful | Whether to consider the result as success |
string | $prefix | The prefix for the end output |
string |
Returns the canonical name of this helper.
string | The canonical name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Helper/DebugFormatterHelper.html