Skip to content

Commit

Permalink
Merge pull request #11 from t3n/context-requestinterface
Browse files Browse the repository at this point in the history
Use RequestInterface instead of http request in Context
  • Loading branch information
Torsten85 authored Feb 17, 2019
2 parents 5e3f909 + 80ec9ff commit 07ccb9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

namespace t3n\GraphQL;

use Neos\Flow\Http\Request;
use Neos\Flow\Mvc\Controller\ControllerContext;
use Neos\Flow\Mvc\RequestInterface;

class Context
{
/** @var Request */
/** @var RequestInterface */
protected $request;

public function __construct(ControllerContext $controllerContext)
{
$this->request = $controllerContext->getRequest()->getMainRequest();
}

public function getRequest(): Request
public function getRequest(): RequestInterface
{
return $this->request;
}
Expand Down

0 comments on commit 07ccb9b

Please sign in to comment.