PHP 클래스 Barryvdh\Debugbar\LaravelDebugbar

Rest is added in Service Provider
상속: extends DebugBar\DebugBar
파일 보기 프로젝트 열기: barryvdh/laravel-debugbar 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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 ) : JavascriptRenderer Returns a JavascriptRenderer for this instance
injectDebugbar ( Response $response ) 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 ( Request $request, Response $response ) : Response 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

보호된 메소드들

메소드 설명
addClockworkHeaders ( Response $response )
checkVersion ( string $version, string $operator = ">=" ) : boolean Check the version of Laravel
isDebugbarRequest ( ) : boolean Check if this is a request to the Debugbar OpenHandler
isJsonRequest ( Request $request ) : boolean
isLumen ( )
selectStorage ( DebugBar\DebugBar $debugbar )

메소드 상세

__call() 공개 메소드

Magic calls for adding messages
public __call ( string $method, array $args ) : mixed | void
$method string
$args array
리턴 mixed | void

__construct() 공개 메소드

public __construct ( Illuminate\Contracts\Foundation\Application $app = null )
$app Illuminate\Contracts\Foundation\Application

addClockworkHeaders() 보호된 메소드

protected addClockworkHeaders ( Response $response )
$response Symfony\Component\HttpFoundation\Response

addException() 공개 메소드

Adds an exception to be profiled in the debug bar
사용 중단: in favor of addThrowable
public addException ( Exception $e )
$e Exception

addMeasure() 공개 메소드

Adds a measure
public addMeasure ( string $label, float $start, float $end )
$label string
$start float
$end float

addMessage() 공개 메소드

A message can be anything from an object to a string
public addMessage ( mixed $message, string $label = 'info' )
$message mixed
$label string

addThrowable() 공개 메소드

Adds an exception to be profiled in the debug bar
public addThrowable ( Exception $e )
$e Exception

boot() 공개 메소드

Boot the debugbar (add collectors, renderer and listener)
public boot ( )

checkVersion() 보호된 메소드

Check the version of Laravel
protected checkVersion ( string $version, string $operator = ">=" ) : boolean
$version string
$operator string (default: '>=')
리턴 boolean

collect() 공개 메소드

Collects the data from the collectors
public collect ( ) : array
리턴 array

collectConsole() 공개 메소드

Collect data in a CLI request
public collectConsole ( ) : array
리턴 array

disable() 공개 메소드

Disable the Debugbar
public disable ( )

enable() 공개 메소드

Enable the Debugbar and boot, if not already booted.
public enable ( )

getJavascriptRenderer() 공개 메소드

Returns a JavascriptRenderer for this instance
public getJavascriptRenderer ( string $baseUrl = null, $basePath = null ) : JavascriptRenderer
$baseUrl string
리턴 JavascriptRenderer

injectDebugbar() 공개 메소드

Injects the web debug toolbar into the given Response.
public injectDebugbar ( Response $response )
$response Symfony\Component\HttpFoundation\Response A Response instance Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php

isDebugbarRequest() 보호된 메소드

Check if this is a request to the Debugbar OpenHandler
protected isDebugbarRequest ( ) : boolean
리턴 boolean

isEnabled() 공개 메소드

Check if the Debugbar is enabled
public isEnabled ( ) : boolean
리턴 boolean

isJsonRequest() 보호된 메소드

protected isJsonRequest ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
리턴 boolean

isLumen() 보호된 메소드

protected isLumen ( )

measure() 공개 메소드

Utility function to measure the execution of a Closure
public measure ( string $label, Closure $closure )
$label string
$closure Closure

modifyResponse() 공개 메소드

Modify the response and inject the debugbar (or data in headers)
public modifyResponse ( Request $request, Response $response ) : Response
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
리턴 Symfony\Component\HttpFoundation\Response

selectStorage() 보호된 메소드

protected selectStorage ( DebugBar\DebugBar $debugbar )
$debugbar DebugBar\DebugBar

shouldCollect() 공개 메소드

public shouldCollect ( $name, $default = false )

startMeasure() 공개 메소드

Starts a measure
public startMeasure ( string $name, string $label = null )
$name string Internal name, used to stop the measure
$label string Public name

stopMeasure() 공개 메소드

Stops a measure
public stopMeasure ( string $name )
$name string

프로퍼티 상세

$app 보호되어 있는 프로퍼티

The Laravel application instance.
protected Application,Illuminate\Foundation $app
리턴 Illuminate\Foundation\Application

$booted 보호되어 있는 프로퍼티

True when booted.
protected bool $booted
리턴 boolean

$enabled 보호되어 있는 프로퍼티

True when enabled, false disabled an null for still unknown
protected bool $enabled
리턴 boolean

$is_lumen 보호되어 있는 프로퍼티

True when this is a Lumen application
protected bool $is_lumen
리턴 boolean

$version 보호되어 있는 프로퍼티

Normalized Laravel Version
protected string $version
리턴 string