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

object
getApiDocument(User $actor, array $params)

Get the result of an API request to show a discussion.

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 object getApiDocument(User $actor, array $params)

Get the result of an API request to show a discussion.

Parameters

User $actor
array $params

Return Value

object

Exceptions

RouteNotFoundException