Initial Commit

This commit is contained in:
Kilian Hofmann
2021-06-01 19:54:59 +02:00
commit 052cbe3038
17 changed files with 1004 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace GermanAirlinesVa\Graphql\Classes;
use Illuminate\Http\Request;
use Nuwave\Lighthouse\Support\Contracts\CreatesContext as LighthouseCreatesContext;
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
class CreatesContext implements LighthouseCreatesContext
{
/**
* Generate GraphQL context.
*
* @param Request $request
*
* @return GraphQLContext
*/
public function generate(Request $request): GraphQLContext
{
return new SchemaContext($request);
}
}