Initial Commit

This commit is contained in:
Kilian Hofmann committed 2021-06-01 19:54:59 +02:00
commit 052cbe3038
17 files changed
+1004

No files matched your search

+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);
}
}