class Client

Properties

protected Container $container
protected ErrorHandler $errorHandler

Methods

__construct(Container $container, ErrorHandler $errorHandler = null)

No description

ResponseInterface
send(string|RequestHandlerInterface $controller, User $actor = null, array $queryParams = [], array $body = [])

<p>Execute the given API action class, pass the input and return its response.</p>

setErrorHandler(ErrorHandler|null $errorHandler)

No description

Details

__construct(Container $container, ErrorHandler $errorHandler = null)

Parameters

Container $container
ErrorHandler $errorHandler

ResponseInterface send(string|RequestHandlerInterface $controller, User $actor = null, array $queryParams = [], array $body = [])

<p>Execute the given API action class, pass the input and return its response.</p>

Parameters

string|RequestHandlerInterface $controller
User $actor
array $queryParams
array $body

Return Value

ResponseInterface

Exceptions

Exception

Client setErrorHandler(ErrorHandler|null $errorHandler)

Parameters

ErrorHandler|null $errorHandler

Return Value

Client