\Pivot\Core\Middleware\HttpLoadClientConfig

Service Aware Load Client Config

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
getServiceLocator()
No protected properties found
N/A
No private methods found
$serviceLocator
N/A

Properties

$serviceLocator

$serviceLocator : \Pivot\Core\Middleware\Pivot\Core\Services\ServliceLocator

Service locator

Type

\Pivot\Core\Middleware\Pivot\Core\Services\ServliceLocator

Methods

__construct()

__construct(object  $serviceLocator) 

inject the service locator

Parameters

object $serviceLocator

__invoke()

__invoke(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response, callable  $next) : \Psr\Http\Message\ResponseInterface

Load client config based on HTTP request data

Parameters

\Psr\Http\Message\ServerRequestInterface $request

PSR7 request

\Psr\Http\Message\ResponseInterface $response

PSR7 response

callable $next

Next middleware

Returns

\Psr\Http\Message\ResponseInterface

getServiceLocator()

getServiceLocator() : \Pivot\Core\Middleware\ServiceLocator

gets the service locator

Returns

\Pivot\Core\Middleware\ServiceLocator