PHP Class Symfony\Component\HttpKernel\DataCollector\RequestDataCollector

Author: Fabien Potencier ([email protected])
Inheritance: extends DataCollector
ファイルを表示 Open project: symfony/symfony Class Usage Examples

Protected Properties

Property Type Description
$controllers SplObjectStorage

Public Methods

Method 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 )

Protected Methods

Method Description
parseController ( mixed $controller ) : array | string Parse a controller.

Method Details

__construct() public method

public __construct ( )

collect() public method

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

getContent() public method

public getContent ( )

getContentType() public method

public getContentType ( )

getController() public method

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

getFlashes() public method

public getFlashes ( )

getFormat() public method

public getFormat ( )

getIdentifier() public method

public getIdentifier ( )

getLocale() public method

public getLocale ( )

getMethod() public method

public getMethod ( )

getName() public method

public getName ( )

getPathInfo() public method

public getPathInfo ( )

getRedirect() public method

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

getRequestAttributes() public method

getRequestCookies() public method

public getRequestCookies ( $raw = false )

getRequestHeaders() public method

public getRequestHeaders ( )

getRequestQuery() public method

public getRequestQuery ( )

getRequestRequest() public method

public getRequestRequest ( )

getRequestServer() public method

public getRequestServer ( $raw = false )

getResponseHeaders() public method

public getResponseHeaders ( )

getRoute() public method

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

getRouteParams() public method

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

getSessionAttributes() public method

getSessionMetadata() public method

public getSessionMetadata ( )

getStatusCode() public method

public getStatusCode ( )

getStatusText() public method

public getStatusText ( )

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onKernelController() public method

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

onKernelResponse() public method

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

parseController() protected method

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

Property Details

$controllers protected_oe property

protected SplObjectStorage $controllers
return SplObjectStorage