class RequestDataCollector extends DataCollector implements EventSubscriberInterface
RequestDataCollector.
serialize() | from DataCollector | |
unserialize($data) | from DataCollector | |
__construct() | ||
collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. | ||
getMethod() | ||
getPathInfo() | ||
getRequestRequest() | ||
getRequestQuery() | ||
getRequestHeaders() | ||
getRequestServer($raw = false) | ||
getRequestCookies($raw = false) | ||
getRequestAttributes() | ||
getResponseHeaders() | ||
getSessionMetadata() | ||
getSessionAttributes() | ||
getFlashes() | ||
getContent() | ||
getContentType() | ||
getStatusText() | ||
getStatusCode() | ||
getFormat() | ||
getLocale() | ||
string | getRoute() Gets the route name. | |
getIdentifier() | ||
array | getRouteParams() Gets the route parameters. | |
array|string | getController() Gets the parsed controller. | |
array|bool | getRedirect() Gets the previous request attributes. | |
onKernelController(FilterControllerEvent $event) | ||
onKernelResponse(FilterResponseEvent $event) | ||
static array | getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. | |
string | getName() Returns the name of the collector. |
Collects data for the given Request and Response.
Gets the route name.
The _route request attributes is automatically set by the Router Matcher.
Gets the route parameters.
The routeparams request attributes is automatically set by the RouterListener.
Gets the parsed controller.
Gets the previous request attributes.
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
Returns the name of the collector.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.html