This commit is contained in:
Kilian Hofmann
2021-06-01 19:55:55 +02:00
parent 052cbe3038
commit d8c489c714
328 changed files with 36645 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
namespace Nuwave\Lighthouse\Execution;
use Symfony\Component\HttpFoundation\Response;
use Nuwave\Lighthouse\Support\Contracts\CreatesResponse;
class SingleResponse implements CreatesResponse
{
/**
* Create a HTTP response from the final result.
*
* @param mixed[] $result
* @return \Symfony\Component\HttpFoundation\Response
*/
public function createResponse(array $result): Response
{
return response($result);
}
}