class Discussion

Properties

protected Client $api
protected UrlGenerator $url
protected Factory $view

Methods

__construct(Client $api, UrlGenerator $url, Factory $view)

No description

__invoke(Document $document, ServerRequestInterface $request)

No description

getApiDocument(ServerRequestInterface $request, string $id, array $params)

<p>Get the result of an API request to show a discussion.</p>

Details

__construct(Client $api, UrlGenerator $url, Factory $view)

Parameters

Client $api
UrlGenerator $url
Factory $view

__invoke(Document $document, ServerRequestInterface $request)

Parameters

Document $document
ServerRequestInterface $request

protected getApiDocument(ServerRequestInterface $request, string $id, array $params)

<p>Get the result of an API request to show a discussion.</p>

Parameters

ServerRequestInterface $request
string $id
array $params

Exceptions

RouteNotFoundException