Свойство | Type | Description | |
---|---|---|---|
$app | Illuminate\Foundation\Application | The Laravel application instance. | |
$booted | boolean | True when booted. | |
$enabled | boolean | True when enabled, false disabled an null for still unknown | |
$is_lumen | boolean | True when this is a Lumen application | |
$version | string | Normalized Laravel Version |
Méthode | Description | |
---|---|---|
__call ( string $method, array $args ) : mixed | void | Magic calls for adding messages | |
__construct ( Illuminate\Contracts\Foundation\Application $app = null ) | ||
addException ( Exception $e ) | Adds an exception to be profiled in the debug bar | |
addMeasure ( string $label, float $start, float $end ) | Adds a measure | |
addMessage ( mixed $message, string $label = 'info' ) | Adds a message to the MessagesCollector | |
addThrowable ( Exception $e ) | Adds an exception to be profiled in the debug bar | |
boot ( ) | Boot the debugbar (add collectors, renderer and listener) | |
collect ( ) : array | Collects the data from the collectors | |
collectConsole ( ) : array | Collect data in a CLI request | |
disable ( ) | Disable the Debugbar | |
enable ( ) | Enable the Debugbar and boot, if not already booted. | |
getJavascriptRenderer ( string $baseUrl = null, $basePath = null ) : |
Returns a JavascriptRenderer for this instance | |
injectDebugbar ( |
Injects the web debug toolbar into the given Response. | |
isEnabled ( ) : boolean | Check if the Debugbar is enabled | |
measure ( string $label, Closure $closure ) | Utility function to measure the execution of a Closure | |
modifyResponse ( |
Modify the response and inject the debugbar (or data in headers) | |
shouldCollect ( $name, $default = false ) | ||
startMeasure ( string $name, string $label = null ) | Starts a measure | |
stopMeasure ( string $name ) | Stops a measure |
Méthode | Description | |
---|---|---|
addClockworkHeaders ( |
||
checkVersion ( string $version, string $operator = ">=" ) : boolean | Check the version of Laravel | |
isDebugbarRequest ( ) : boolean | Check if this is a request to the Debugbar OpenHandler | |
isJsonRequest ( |
||
isLumen ( ) | ||
selectStorage ( DebugBar\DebugBar $debugbar ) |
public __construct ( Illuminate\Contracts\Foundation\Application $app = null ) | ||
$app | Illuminate\Contracts\Foundation\Application |
protected addClockworkHeaders ( |
||
$response |
public addException ( Exception $e ) | ||
$e | Exception |
public addMessage ( mixed $message, string $label = 'info' ) | ||
$message | mixed | |
$label | string |
public addThrowable ( Exception $e ) | ||
$e | Exception |
public collectConsole ( ) : array | ||
Résultat | array |
public getJavascriptRenderer ( string $baseUrl = null, $basePath = null ) : |
||
$baseUrl | string | |
Résultat |
public injectDebugbar ( |
||
$response | A Response instance Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php |
protected isDebugbarRequest ( ) : boolean | ||
Résultat | boolean |
protected isJsonRequest ( |
||
$request | ||
Résultat | boolean |
public modifyResponse ( |
||
$request | ||
$response | ||
Résultat |
protected selectStorage ( DebugBar\DebugBar $debugbar ) | ||
$debugbar | DebugBar\DebugBar |
public startMeasure ( string $name, string $label = null ) | ||
$name | string | Internal name, used to stop the measure |
$label | string | Public name |
protected Application,Illuminate\Foundation $app | ||
Résultat | Illuminate\Foundation\Application |
protected bool $enabled | ||
Résultat | boolean |
protected bool $is_lumen | ||
Résultat | boolean |