From d76a3356b4ace69e383a11712330307520e38ab8 Mon Sep 17 00:00:00 2001 From: iampersistent Date: Sat, 13 Nov 2021 22:36:15 -0600 Subject: [PATCH] update namespace to Zestic --- README.md | 2 +- composer.json | 2 +- src/ConfigProvider.php | 10 +++++----- src/Factory/GraphQLMiddlewareFactory.php | 4 ++-- src/Factory/SchemaFactory.php | 2 +- src/Factory/ServerConfigFactory.php | 2 +- src/GraphQLMiddleware.php | 6 +++--- src/RequestContextInterface.php | 2 +- tests/unit/Factory/GraphQLMiddlewareFactoryCest.php | 4 ++-- tests/unit/Factory/StandardServerFactoryCest.php | 2 +- tests/unit/Middleware/GraphQLMiddlewareCest.php | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 1d44021..4a0e290 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,6 @@ the server config. You'll need to set up the route. In `config/routes.php` ```php return function (Application $app, MiddlewareFactory $factory, ContainerInterface $container) : void { - $app->post('/graphql', \Xaddax\GraphQL\Middleware\GraphQLMiddleware::class, 'graphql'); + $app->post('/graphql', \Zestic\GraphQL\Middleware\GraphQLMiddleware::class, 'graphql'); }; ``` diff --git a/composer.json b/composer.json index 05c7078..ff325e5 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "minimum-stability": "dev", "autoload": { "psr-4": { - "IamPersistent\\GraphQL\\Middleware\\": "src/" + "Zestic\\GraphQL\\Middleware\\": "src/" } }, "autoload-dev": { diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index f03ba96..cb20502 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -1,7 +1,7 @@ [ \GraphQL\Type\Schema::class => - \IamPersistent\GraphQL\Middleware\Factory\SchemaFactory::class, + \Zestic\GraphQL\Middleware\Factory\SchemaFactory::class, \GraphQL\Server\ServerConfig::class => - \IamPersistent\GraphQL\Middleware\Factory\ServerConfigFactory::class, - \IamPersistent\GraphQL\Middleware\GraphQLMiddleware::class => - \IamPersistent\GraphQL\Middleware\Factory\GraphQLMiddlewareFactory::class, + \Zestic\GraphQL\Middleware\Factory\ServerConfigFactory::class, + \Zestic\GraphQL\Middleware\GraphQLMiddleware::class => + \Zestic\GraphQL\Middleware\Factory\GraphQLMiddlewareFactory::class, ], ]; } diff --git a/src/Factory/GraphQLMiddlewareFactory.php b/src/Factory/GraphQLMiddlewareFactory.php index 7651467..1e69b4e 100644 --- a/src/Factory/GraphQLMiddlewareFactory.php +++ b/src/Factory/GraphQLMiddlewareFactory.php @@ -1,12 +1,12 @@ options["cookie"]]; }; - + return null; } diff --git a/src/RequestContextInterface.php b/src/RequestContextInterface.php index 6ef4340..19aa65e 100644 --- a/src/RequestContextInterface.php +++ b/src/RequestContextInterface.php @@ -1,7 +1,7 @@