Skip to content

Commit f9767ec

Browse files
committed
Issue-230: adding varnish
- fixing controller type
1 parent db3b5e1 commit f9767ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/GraphQl/Controller/GraphQl.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Framework\App\FrontControllerInterface;
1111
use Magento\Framework\App\Request\Http;
1212
use Magento\Framework\App\RequestInterface;
13+
use Magento\Framework\App\ResponseInterface;
1314
use Magento\Framework\GraphQl\Exception\ExceptionFormatter;
1415
use Magento\Framework\GraphQl\Query\QueryProcessor;
1516
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
@@ -121,9 +122,9 @@ public function __construct(
121122
* Handle GraphQL request
122123
*
123124
* @param RequestInterface $request
124-
* @return Response
125+
* @return ResponseInterface
125126
*/
126-
public function dispatch(RequestInterface $request) : HttpResponse
127+
public function dispatch(RequestInterface $request) : ResponseInterface
127128
{
128129
$statusCode = 200;
129130
$jsonResult = $this->jsonFactory->create();

0 commit comments

Comments
 (0)