PHP Class Neos\Flow\Http\RequestHandler

Inheritance: implements Neos\Flow\Http\HttpRequestHandlerInterface
Afficher le fichier Open project: neos/flow-development-collection

Méthodes publiques

Свойство Type Description
$exit Closure Make exit() a closure so it can be manipulated during tests

Protected Properties

Свойство Type Description
$baseComponentChain Neos\Flow\Http\Component\ComponentChain
$bootstrap Neos\Flow\Core\Bootstrap
$componentContext Neos\Flow\Http\Component\ComponentContext
$settings array The "http" settings

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

addPoweredByHeader() protected méthode

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

boot() protected méthode

Boots up Flow to runtime
protected boot ( ) : void
Résultat void

canHandleRequest() public méthode

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

getHttpRequest() public méthode

Returns the currently handled HTTP request
public getHttpRequest ( ) : Request
Résultat Request

getHttpResponse() public méthode

Returns the HTTP response corresponding to the currently handled request
public getHttpResponse ( ) : Response
Résultat Response

getPriority() public méthode

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

handleRequest() public méthode

Handles a HTTP request
public handleRequest ( ) : void
Résultat void

renderMajorVersion() protected méthode

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

renderMinorVersion() protected méthode

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

resolveDependencies() protected méthode

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
Résultat void

Property Details

$baseComponentChain protected_oe property

protected ComponentChain,Neos\Flow\Http\Component $baseComponentChain
Résultat Neos\Flow\Http\Component\ComponentChain

$bootstrap protected_oe property

protected Bootstrap,Neos\Flow\Core $bootstrap
Résultat Neos\Flow\Core\Bootstrap

$componentContext protected_oe property

protected ComponentContext,Neos\Flow\Http\Component $componentContext
Résultat Neos\Flow\Http\Component\ComponentContext

$exit public_oe property

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

$settings protected_oe property

The "http" settings
protected array $settings
Résultat array