mirror of
https://github.com/flarum/framework.git
synced 2025-05-31 04:25:49 +08:00

An initial stab at flarum/core#126. Still WIP. Preliminary implementation of flarum/core#128 and flarum/core#13.
17 lines
298 B
PHP
17 lines
298 B
PHP
<?php namespace Flarum\Api;
|
|
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
class Response
|
|
{
|
|
public function __construct(ResponseInterface $response)
|
|
{
|
|
$this->response = $response;
|
|
}
|
|
|
|
public function getBody()
|
|
{
|
|
return json_decode($this->response->getBody());
|
|
}
|
|
}
|