class Client

Properties

protected Container $container
protected Registry $registry

Methods

__construct(Container $container, Registry $registry)

No description

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

Execute the given API action class, pass the input and return its response.

Details

__construct(Container $container, Registry $registry)

Parameters

Container $container
Registry $registry

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

Execute the given API action class, pass the input and return its response.

Parameters

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

Return Value

ResponseInterface

Exceptions

Exception