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 @@