Helper\DebugFormatterHelper (Component\Console)
Symfony\Component\Console\Helper\DebugFormatterHelper
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.
Methods
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 | formatTime($secs) | from Helper |
static | formatMemory($memory) | from Helper |
static | strlenWithoutDecoration(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. |
Details
public setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
public HelperSet getHelperSet()
Gets the helper set associated with this helper.
static public int strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
static public formatTime($secs)
static public formatMemory($memory)
static public strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
public string start(string $id, string $message, string $prefix = 'RUN')
Starts a debug formatting session.
public string progress(string $id, string $buffer, bool $error = false, string $prefix = 'OUT', string $errorPrefix = 'ERR')
Adds progress to a formatting session.
public string stop(string $id, string $message, bool $successful, string $prefix = 'RES')
Stops a formatting session.
public string getName()
Returns the canonical name of this helper.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Console/Helper/DebugFormatterHelper.html