Skip to content

Commit e8fedcc

Browse files
committed
make it more clear that samples are using hand-rolled classes
1 parent b5fdd3e commit e8fedcc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/executing-queries.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,8 @@ To optimize for this, `graphql-php` supports pluggable validation caching. By im
222222
```php
223223
use GraphQL\Validator\ValidationCache;
224224
use GraphQL\GraphQL;
225-
use GraphQL\Tests\PsrValidationCacheAdapter;
226225

227-
$validationCache = new PsrValidationCacheAdapter();
226+
$validationCache = new MyPsrValidationCacheAdapter();
228227

229228
$result = GraphQL::executeQuery(
230229
$schema,
@@ -262,7 +261,7 @@ use Composer\InstalledVersions;
262261
*
263262
* @see GraphQl\Tests\PsrValidationCacheAdapter
264263
*/
265-
class PsrValidationCacheAdapter implements ValidationCache
264+
class MyPsrValidationCacheAdapter implements ValidationCache
266265
{
267266
private CacheInterface $cache;
268267

0 commit comments

Comments
 (0)