PHP Class Symfony\Component\HttpKernel\DataCollector\RequestDataCollector

Author: Fabien Potencier ([email protected])
Inheritance: extends DataCollector
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Protected Properties

Свойство Type Description
$controllers SplObjectStorage

Méthodes publiques

Méthode Description
__construct ( )
collect ( Request $request, Response $response, Exception $exception = null )
getContent ( )
getContentType ( )
getController ( ) : array | string Gets the parsed controller.
getFlashes ( )
getFormat ( )
getIdentifier ( )
getLocale ( )
getMethod ( )
getName ( )
getPathInfo ( )
getRedirect ( ) : array | boolean Gets the previous request attributes.
getRequestAttributes ( )
getRequestCookies ( $raw = false )
getRequestHeaders ( )
getRequestQuery ( )
getRequestRequest ( )
getRequestServer ( $raw = false )
getResponseHeaders ( )
getRoute ( ) : string Gets the route name.
getRouteParams ( ) : array Gets the route parameters.
getSessionAttributes ( )
getSessionMetadata ( )
getStatusCode ( )
getStatusText ( )
getSubscribedEvents ( )
onKernelController ( FilterControllerEvent $event )
onKernelResponse ( FilterResponseEvent $event )

Méthodes protégées

Méthode Description
parseController ( mixed $controller ) : array | string Parse a controller.

Method Details

__construct() public méthode

public __construct ( )

collect() public méthode

public collect ( Request $request, Response $response, Exception $exception = null )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$exception Exception

getContent() public méthode

public getContent ( )

getContentType() public méthode

public getContentType ( )

getController() public méthode

Gets the parsed controller.
public getController ( ) : array | string
Résultat array | string The controller as a string or array of data with keys 'class', 'method', 'file' and 'line'

getFlashes() public méthode

public getFlashes ( )

getFormat() public méthode

public getFormat ( )

getIdentifier() public méthode

public getIdentifier ( )

getLocale() public méthode

public getLocale ( )

getMethod() public méthode

public getMethod ( )

getName() public méthode

public getName ( )

getPathInfo() public méthode

public getPathInfo ( )

getRedirect() public méthode

Gets the previous request attributes.
public getRedirect ( ) : array | boolean
Résultat array | boolean A legacy array of data from the previous redirection response or false otherwise

getRequestAttributes() public méthode

getRequestCookies() public méthode

public getRequestCookies ( $raw = false )

getRequestHeaders() public méthode

public getRequestHeaders ( )

getRequestQuery() public méthode

public getRequestQuery ( )

getRequestRequest() public méthode

public getRequestRequest ( )

getRequestServer() public méthode

public getRequestServer ( $raw = false )

getResponseHeaders() public méthode

public getResponseHeaders ( )

getRoute() public méthode

The _route request attributes is automatically set by the Router Matcher.
public getRoute ( ) : string
Résultat string The route

getRouteParams() public méthode

The _route_params request attributes is automatically set by the RouterListener.
public getRouteParams ( ) : array
Résultat array The parameters

getSessionAttributes() public méthode

getSessionMetadata() public méthode

public getSessionMetadata ( )

getStatusCode() public méthode

public getStatusCode ( )

getStatusText() public méthode

public getStatusText ( )

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

onKernelController() public méthode

public onKernelController ( FilterControllerEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterControllerEvent

onKernelResponse() public méthode

public onKernelResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

parseController() protected méthode

Parse a controller.
protected parseController ( mixed $controller ) : array | string
$controller mixed The controller to parse
Résultat array | string An array of controller data or a simple string

Property Details

$controllers protected_oe property

protected SplObjectStorage $controllers
Résultat SplObjectStorage