PHP Класс Neos\Flow\Http\RequestHandler

Наследование: implements Neos\Flow\Http\HttpRequestHandlerInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$exit Closure Make exit() a closure so it can be manipulated during tests

Защищенные свойства (Protected)

Свойство Тип Описание
$baseComponentChain Neos\Flow\Http\Component\ComponentChain
$bootstrap Neos\Flow\Core\Bootstrap
$componentContext Neos\Flow\Http\Component\ComponentContext
$settings array The "http" settings

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

addPoweredByHeader() защищенный Метод

Adds an HTTP header to the Response which indicates that the application is powered by Flow.
protected addPoweredByHeader ( Response $response ) : void
$response Response
Результат void

boot() защищенный Метод

Boots up Flow to runtime
protected boot ( ) : void
Результат void

canHandleRequest() публичный Метод

This request handler can handle any web request.
public canHandleRequest ( ) : boolean
Результат boolean If the request is a web request, TRUE otherwise FALSE

getHttpRequest() публичный Метод

Returns the currently handled HTTP request
public getHttpRequest ( ) : Request
Результат Request

getHttpResponse() публичный Метод

Returns the HTTP response corresponding to the currently handled request
public getHttpResponse ( ) : Response
Результат Response

getPriority() публичный Метод

Returns the priority - how eager the handler is to actually handle the request.
public getPriority ( ) : integer
Результат integer The priority of the request handler.

handleRequest() публичный Метод

Handles a HTTP request
public handleRequest ( ) : void
Результат void

renderMajorVersion() защищенный Метод

Renders a major version out of a full version string
protected renderMajorVersion ( string $version ) : string
$version string For example "2.3.7"
Результат string For example "2"

renderMinorVersion() защищенный Метод

Renders a minor version out of a full version string
protected renderMinorVersion ( string $version ) : string
$version string For example "2.3.7"
Результат string For example "2.3"

resolveDependencies() защищенный Метод

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
Результат void

Описание свойств

$baseComponentChain защищенное свойство

protected ComponentChain,Neos\Flow\Http\Component $baseComponentChain
Результат Neos\Flow\Http\Component\ComponentChain

$bootstrap защищенное свойство

protected Bootstrap,Neos\Flow\Core $bootstrap
Результат Neos\Flow\Core\Bootstrap

$componentContext защищенное свойство

protected ComponentContext,Neos\Flow\Http\Component $componentContext
Результат Neos\Flow\Http\Component\ComponentContext

$exit публичное свойство

Make exit() a closure so it can be manipulated during tests
public Closure $exit
Результат Closure

$settings защищенное свойство

The "http" settings
protected array $settings
Результат array