-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from daniellienert/task/support-flow-6
Feature: Flow 6.0 compatibility
- Loading branch information
Showing
6 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<?php | ||
namespace Wwwision\GraphQL; | ||
|
||
use Neos\Flow\Http\Request as HttpRequest; | ||
use Psr\Http\Message\ServerRequestInterface; | ||
|
||
/** | ||
* A custom context that will be accessible to all resolvers | ||
*/ | ||
final class GraphQLContext | ||
{ | ||
/** | ||
* @var HttpRequest | ||
* @var ServerRequestInterface | ||
*/ | ||
private $httpRequest; | ||
|
||
/** | ||
* @param HttpRequest $httpRequest | ||
* @param ServerRequestInterface $httpRequest | ||
*/ | ||
public function __construct(HttpRequest $httpRequest) | ||
public function __construct(ServerRequestInterface $httpRequest) | ||
{ | ||
$this->httpRequest = $httpRequest; | ||
} | ||
|
||
/** | ||
* @return HttpRequest | ||
* @return ServerRequestInterface | ||
*/ | ||
public function getHttpRequest() | ||
public function getHttpRequest(): ServerRequestInterface | ||
{ | ||
return $this->httpRequest; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters