This commit is contained in:
Kilian Hofmann
2021-06-01 19:55:55 +02:00
parent 052cbe3038
commit d8c489c714
328 changed files with 36645 additions and 0 deletions
@@ -0,0 +1,24 @@
<?php
namespace Nuwave\Lighthouse\Subscriptions\Contracts;
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
interface ContextSerializer
{
/**
* Serialize the context.
*
* @param \Nuwave\Lighthouse\Support\Contracts\GraphQLContext $context
* @return string
*/
public function serialize(GraphQLContext $context);
/**
* Unserialize the context.
*
* @param string $context
* @return \Nuwave\Lighthouse\Support\Contracts\GraphQLContext
*/
public function unserialize(string $context);
}