Skip to content

Commit 738e585

Browse files
authored
Merge pull request #34 from DenisVinokurov/master
Add support thecodingmachine/graphqlite 5
2 parents a74423f + 982f763 commit 738e585

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- 7.2
55
- 7.3
66
- 7.4
7+
- 8.0
78

89
env:
910
matrix:

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
"homepage": "http://mouf-php.com"
1717
}
1818
],
19+
"scripts": {
20+
"test": "phpunit"
21+
},
1922
"require": {
2023
"php": ">=7.2",
21-
"thecodingmachine/graphqlite": "^4",
24+
"thecodingmachine/graphqlite": "^5.0",
2225
"illuminate/console": "^5.7|^6.0|^7|^8",
2326
"illuminate/container": "^5.7|^6.0|^7|^8",
2427
"illuminate/support": "^5.7|^6.0|^7|^8",
@@ -44,7 +47,7 @@
4447
},
4548
"extra": {
4649
"branch-alias": {
47-
"dev-master": "4.1.x-dev"
50+
"dev-master": "5.0.x-dev"
4851
},
4952
"laravel": {
5053
"providers": [

src/Controllers/GraphQLiteController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
use Illuminate\Http\Request;
8-
use GraphQL\Error\Debug;
8+
use GraphQL\Error\DebugFlag;
99
use GraphQL\Executor\ExecutionResult;
1010
use GraphQL\Executor\Promise\Promise;
1111
use GraphQL\Server\StandardServer;
@@ -33,7 +33,7 @@ class GraphQLiteController
3333
/** @var bool|int */
3434
private $debug;
3535

36-
public function __construct(StandardServer $standardServer, HttpMessageFactoryInterface $httpMessageFactory = null, ?int $debug = Debug::RETHROW_UNSAFE_EXCEPTIONS)
36+
public function __construct(StandardServer $standardServer, HttpMessageFactoryInterface $httpMessageFactory = null, ?int $debug = DebugFlag::RETHROW_UNSAFE_EXCEPTIONS)
3737
{
3838
$this->standardServer = $standardServer;
3939
$this->httpMessageFactory = $httpMessageFactory ?: new DiactorosFactory();

src/Providers/GraphQLiteServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use TheCodingMachine\GraphQLite\Security\AuthenticationServiceInterface;
2929
use function config;
3030
use function extension_loaded;
31-
use GraphQL\Error\Debug;
31+
use GraphQL\Error\DebugFlag;
3232
use GraphQL\Server\ServerConfig;
3333
use GraphQL\Server\StandardServer;
3434
use Illuminate\Contracts\Foundation\Application;
@@ -87,7 +87,7 @@ public function register()
8787
$this->app->bind(HttpMessageFactoryInterface::class, PsrHttpFactory::class);
8888

8989
$this->app->singleton(GraphQLiteController::class, function (Application $app) {
90-
$debug = config('graphqlite.debug', Debug::RETHROW_UNSAFE_EXCEPTIONS);
90+
$debug = config('graphqlite.debug', DebugFlag::RETHROW_UNSAFE_EXCEPTIONS);
9191

9292
return new GraphQLiteController($app[StandardServer::class], $app[HttpMessageFactoryInterface::class], $debug);
9393
});

0 commit comments

Comments
 (0)