PHP Class Neos\Flow\Http\RequestHandler

Inheritance: implements Neos\Flow\Http\HttpRequestHandlerInterface
Show file Open project: neos/flow-development-collection

Public Properties

Property Type Description
$exit Closure Make exit() a closure so it can be manipulated during tests

Protected Properties

Property Type Description
$baseComponentChain Neos\Flow\Http\Component\ComponentChain
$bootstrap Neos\Flow\Core\Bootstrap
$componentContext Neos\Flow\Http\Component\ComponentContext
$settings array The "http" settings

Public Methods

Method Description
__construct ( Bootstrap $bootstrap )
canHandleRequest ( ) : boolean This request handler can handle any web request.
getHttpRequest ( ) : Request Returns the currently handled HTTP request
getHttpResponse ( ) : Response Returns the HTTP response corresponding to the currently handled request
getPriority ( ) : integer Returns the priority - how eager the handler is to actually handle the request.
handleRequest ( ) : void Handles a HTTP request

Protected Methods

Method Description
addPoweredByHeader ( Response $response ) : void Adds an HTTP header to the Response which indicates that the application is powered by Flow.
boot ( ) : void Boots up Flow to runtime
renderMajorVersion ( string $version ) : string Renders a major version out of a full version string
renderMinorVersion ( string $version ) : string Renders a minor version out of a full version string
resolveDependencies ( ) : void Resolves a few dependencies of this request handler which can't be resolved automatically due to the early stage of the boot process this request handler is invoked at.

Method Details

__construct() public method

public __construct ( Bootstrap $bootstrap )
$bootstrap Neos\Flow\Core\Bootstrap

addPoweredByHeader() protected method

Adds an HTTP header to the Response which indicates that the application is powered by Flow.
protected addPoweredByHeader ( Response $response ) : void
$response Response
return void

boot() protected method

Boots up Flow to runtime
protected boot ( ) : void
return void

canHandleRequest() public method

This request handler can handle any web request.
public canHandleRequest ( ) : boolean
return boolean If the request is a web request, TRUE otherwise FALSE

getHttpRequest() public method

Returns the currently handled HTTP request
public getHttpRequest ( ) : Request
return Request

getHttpResponse() public method

Returns the HTTP response corresponding to the currently handled request
public getHttpResponse ( ) : Response
return Response

getPriority() public method

Returns the priority - how eager the handler is to actually handle the request.
public getPriority ( ) : integer
return integer The priority of the request handler.

handleRequest() public method

Handles a HTTP request
public handleRequest ( ) : void
return void

renderMajorVersion() protected method

Renders a major version out of a full version string
protected renderMajorVersion ( string $version ) : string
$version string For example "2.3.7"
return string For example "2"

renderMinorVersion() protected method

Renders a minor version out of a full version string
protected renderMinorVersion ( string $version ) : string
$version string For example "2.3.7"
return string For example "2.3"

resolveDependencies() protected method

Resolves a few dependencies of this request handler which can't be resolved automatically due to the early stage of the boot process this request handler is invoked at.
protected resolveDependencies ( ) : void
return void

Property Details

$baseComponentChain protected property

protected ComponentChain,Neos\Flow\Http\Component $baseComponentChain
return Neos\Flow\Http\Component\ComponentChain

$bootstrap protected property

protected Bootstrap,Neos\Flow\Core $bootstrap
return Neos\Flow\Core\Bootstrap

$componentContext protected property

protected ComponentContext,Neos\Flow\Http\Component $componentContext
return Neos\Flow\Http\Component\ComponentContext

$exit public property

Make exit() a closure so it can be manipulated during tests
public Closure $exit
return Closure

$settings protected property

The "http" settings
protected array $settings
return array