eee
This commit is contained in:
@@ -9,21 +9,13 @@ use Psr\Http\Message\ResponseInterface;
|
||||
class OtherFormat implements IFormat
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var ResponseInterface
|
||||
*/
|
||||
#[Container(ResponseInterface::class)]
|
||||
public ResponseInterface $response;
|
||||
|
||||
|
||||
/**
|
||||
* @param mixed $result
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function call(mixed $result): ResponseInterface
|
||||
{
|
||||
return $this->response->withBody(new Stream($result));
|
||||
return di(ResponseInterface::class)->withBody(new Stream($result));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user