W3cubDocs

/Symfony 4.1

DataCollectorInterface

interface DataCollectorInterface

DataCollectorInterface.

Methods

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

string getName()

Returns the name of the collector.

reset()

Resets this data collector to its initial state.

Details

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

string getName()

Returns the name of the collector.

Return Value

string The collector name

reset()

Resets this data collector to its initial state.