Method |
Description |
|
__call ( string $method, array $args ) : mixed | void |
Magic calls for adding messages |
|
__construct ( $di ) |
|
|
addException ( Exception $e ) |
Adds an exception to be profiled in the debug bar |
|
addMeasure ( string $label, float $start, float $end ) |
Adds a measure |
|
addMeasurePoint ( $label, $start = null ) |
|
|
addMessage ( mixed $message, string $label = 'info' ) |
Adds a message to the MessagesCollector |
|
attachCache ( $cacheService ) |
|
|
attachDb ( Phalcon\Db\Adapter $db ) |
|
|
attachMailer ( $mailer ) |
|
|
attachServices ( ) |
|
|
attachView ( $view ) |
|
|
boot ( ) |
启动debugbar: 设置collector |
|
collect ( ) : array |
Collects the data from the collectors |
|
debugbarRequestCollector ( ) |
|
|
disable ( ) |
|
|
enable ( ) |
|
|
getJavascriptRenderer ( string $baseUrl = null, null $basePath = null ) : Snowair\Debugbar\JsRender |
Returns a JavascriptRenderer for this instance |
|
injectDebugbar ( Phalcon\Http\Response $response ) |
Injects the web debug toolbar into the given Response. |
|
isEnabled ( ) : boolean |
检查是否启用了debugbar |
|
isRedirection ( Phalcon\Http\Response $response ) : boolean |
|
|
measure ( string $label, Closure $closure ) |
Utility function to measure the execution of a Closure |
|
modifyResponse ( Phalcon\Http\Response $response ) : mixed |
|
|
shouldCollect ( $name, $default = false ) |
|
|
sortCollectors ( ) |
|
|
startMeasure ( string $name, string $label = null ) |
Starts a measure |
|
stopMeasure ( string $name ) |
Stops a measure |
|