HttpContextReader

Implements \HttpContextReaderInterface

Class HttpContextReader

category

System

package

Http

implements

HttpContextReaderInterface

Methods

Returns the name of the action method for the current http context.

getActionName(\HttpContextInterface $httpContext) : string

Arguments

$httpContext

\HttpContextInterface

Object which holds information about the current http context.

Response

string

Name of action method for the current http context.

Returns the controller name for current http request context.

getControllerName(\HttpContextInterface $httpContext) : string

Arguments

$httpContext

\HttpContextInterface

Object which holds information about the current http context.

Response

string

Name of controller for the current http context.

Returns an array which represents the global $_POST variable of the current http context.

getPostData(\HttpContextInterface $httpContext) : array

Arguments

$httpContext

\HttpContextInterface

Object which holds information about the current http context.

Response

array

Which holds information equal to the global $_POST variable in an object oriented layer.

Returns an array which represents the global $_GET variable of the current http context.

getQueryParameters(\HttpContextInterface $httpContext) : array

Arguments

$httpContext

\HttpContextInterface

Object which holds information about the current http context.

Response

array

Which holds information equal to the global $_GET variable in an object oriented layer.

Returns an array which represents the global $_SERVER variable of the current http context.

getServerData(\HttpContextInterface $httpContext) : array

Arguments

$httpContext

\HttpContextInterface

Object which holds information about the current http context.

Response

array

Array which hold information equal to the global $_SERVER variable in an object oriented layer.