PHP Class Neos\Flow\Http\Client\InternalRequestEngine

This engine is particularly useful in functional test scenarios.
Inheritance: implements Neos\Flow\Http\Client\RequestEngineInterface
Exibir arquivo Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$bootstrap Neos\Flow\Core\Bootstrap
$configurationManager Neos\Flow\Configuration\ConfigurationManager
$dispatcher Neos\Flow\Mvc\Dispatcher
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$router Neos\Flow\Mvc\Routing\Router
$securityContext Neos\Flow\Security\Context
$settings array
$validatorResolver Neos\Flow\Validation\ValidatorResolver

Public Methods

Method Description
getRouter ( ) : Router Returns the router used by this internal request engine
injectSettings ( array $settings ) : void
sendRequest ( Request $httpRequest ) : Response Sends the given HTTP request

Protected Methods

Method Description
prepareErrorResponse ( object $exception, Response $response ) : void Prepare a response in case an error occurred.

Method Details

getRouter() public method

Returns the router used by this internal request engine
public getRouter ( ) : Router
return Neos\Flow\Mvc\Routing\Router

injectSettings() public method

public injectSettings ( array $settings ) : void
$settings array
return void

prepareErrorResponse() protected method

Prepare a response in case an error occurred.
protected prepareErrorResponse ( object $exception, Response $response ) : void
$exception object \Exception or \Throwable
$response Neos\Flow\Http\Response
return void

sendRequest() public method

Sends the given HTTP request
public sendRequest ( Request $httpRequest ) : Response
$httpRequest Neos\Flow\Http\Request
return Neos\Flow\Http\Response

Property Details

$bootstrap protected_oe property

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

$configurationManager protected_oe property

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
return Neos\Flow\Configuration\ConfigurationManager

$dispatcher protected_oe property

protected Dispatcher,Neos\Flow\Mvc $dispatcher
return Neos\Flow\Mvc\Dispatcher

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$router protected_oe property

protected Router,Neos\Flow\Mvc\Routing $router
return Neos\Flow\Mvc\Routing\Router

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
return Neos\Flow\Security\Context

$settings protected_oe property

protected array $settings
return array

$validatorResolver protected_oe property

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
return Neos\Flow\Validation\ValidatorResolver