RequestDataCollector
class RequestDataCollector extends DataCollector implements EventSubscriberInterface
RequestDataCollector.
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Gets the route name.
Gets the route parameters.
Gets the controller.
Returns an array of event names this subscriber wants to listen to.
Returns the name of the collector.
Details
in DataCollector at line line 33
serialize()
in DataCollector at line line 38
unserialize($data)
at line line 32
__construct()
at line line 40
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
at line line 169
getPathInfo()
at line line 174
getRequestRequest()
at line line 179
getRequestQuery()
at line line 184
getRequestHeaders()
at line line 189
getRequestServer()
at line line 194
getRequestCookies()
at line line 199
getRequestAttributes()
at line line 204
getResponseHeaders()
at line line 209
getSessionMetadata()
at line line 214
getSessionAttributes()
at line line 219
getFlashes()
at line line 224
getContent()
at line line 229
getContentType()
at line line 234
getStatusText()
at line line 239
getStatusCode()
at line line 244
getFormat()
at line line 249
getLocale()
at line line 261
string
getRoute()
Gets the route name.
The _route request attributes is automatically set by the Router Matcher.
at line line 273
array
getRouteParams()
Gets the route parameters.
The routeparams request attributes is automatically set by the RouterListener.
at line line 283
string
getController()
Gets the controller.
at line line 288
onKernelController(FilterControllerEvent $event)
at line line 293
static array
getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
- The method name to call (priority defaults to 0)
- An array composed of the method name to call and the priority
- An array of arrays composed of the method names to call and respective priorities, or 0 if unset
For instance:
- array('eventName' => 'methodName')
- array('eventName' => array('methodName', $priority))
- array('eventName' => array(array('methodName1', $priority), array('methodName2'))
at line line 301
string
getName()
Returns the name of the collector.