src/Forum/Content/Discussion.php
protected function getApiDocument(User $actor, array $params)
    {
        $response = $this->api->send('Flarum\Api\Controller\ShowDiscussionController', $actor, $params);
        $statusCode = $response->getStatusCode();

        if ($statusCode === 404) {
            throw new RouteNotFoundException;
        }

        return json_decode($response->getBody());
    }
protected function getApiDocument(User $actor, array $params)
    {
        $response = $this->api->send('Flarum\Api\Controller\ShowDiscussionController', $actor, $params);
        $statusCode = $response->getStatusCode();

        if ($statusCode === 404) {
            throw new RouteNotFoundException;
        }

        return json_decode($response->getBody());
    }
protected function getApiDocument ( User $ actor , array $ params ) { $ response = $ this -> api -> send ( 'Flarum\Api\Controller\ShowDiscussionController' , $ actor , $ params ) ; $ statusCode = $ response -> getStatusCode ( ) ; if ( $ statusCode === 404 ) { throw new RouteNotFoundException ; } return json_decode ( $ response -> getBody ( ) ) ; }
Get the result of an API request to show a discussion.

@param User $actor
@param array $params
@return object
@throws RouteNotFoundException
Get the result of an API request to show a discussion .