PHP Class Clockwork\DataSource\LumenDataSource

Inheritance: extends DataSource
Show file Open project: itsgoingd/clockwork

Protected Properties

Property Type Description
$app Laravel application from which the data is retrieved
$log Log data structure
$response Laravel response from which the data is retrieved
$timeline Timeline data structure
$views Timeline data structure for views data

Public Methods

Method Description
__construct ( Application $app ) Create a new data source, takes Laravel application instance as an argument
listenToEvents ( ) Hook up callbacks for various Laravel events, providing information for timeline and log entries
resolve ( Request $request ) Adds request method, uri, controller, headers, response status, timeline data and log entries to the request
setResponse ( Response $response ) Set a custom response instance

Protected Methods

Method Description
getController ( ) Return a textual representation of current route's controller
getMethod ( )
getPathInfo ( )
getRequestHeaders ( ) Return request headers
getRequestMethod ( ) Return request method
getRequestUri ( ) Return request URI
getResponseStatus ( ) Return response status code
getRoutes ( ) Return array of application routes
getSessionData ( ) Return session data (replace unserializable items, attempt to remove passwords)

Method Details

__construct() public method

Create a new data source, takes Laravel application instance as an argument
public __construct ( Application $app )
$app Laravel\Lumen\Application

getController() protected method

Return a textual representation of current route's controller
protected getController ( )

getMethod() protected method

protected getMethod ( )

getPathInfo() protected method

protected getPathInfo ( )

getRequestHeaders() protected method

Return request headers
protected getRequestHeaders ( )

getRequestMethod() protected method

Return request method
protected getRequestMethod ( )

getRequestUri() protected method

Return request URI
protected getRequestUri ( )

getResponseStatus() protected method

Return response status code
protected getResponseStatus ( )

getRoutes() protected method

Return array of application routes
protected getRoutes ( )

getSessionData() protected method

Return session data (replace unserializable items, attempt to remove passwords)
protected getSessionData ( )

listenToEvents() public method

Hook up callbacks for various Laravel events, providing information for timeline and log entries
public listenToEvents ( )

resolve() public method

Adds request method, uri, controller, headers, response status, timeline data and log entries to the request
public resolve ( Request $request )
$request Clockwork\Request\Request

setResponse() public method

Set a custom response instance
public setResponse ( Response $response )
$response Symfony\Component\HttpFoundation\Response

Property Details

$app protected property

Laravel application from which the data is retrieved
protected $app

$log protected property

Log data structure
protected $log

$response protected property

Laravel response from which the data is retrieved
protected $response

$timeline protected property

Timeline data structure
protected $timeline

$views protected property

Timeline data structure for views data
protected $views