Skip to content

Commit

Permalink
Use Filesystem as example cache
Browse files Browse the repository at this point in the history
APCu isn't enabled by default, which makes the example crash
  • Loading branch information
shish committed Mar 14, 2024
1 parent 256da31 commit 87d2e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/other-frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ use GraphQL\Type\Schema;
use Mouf\Picotainer\Picotainer;
use Psr\Container\ContainerInterface;
use Psr\SimpleCache\CacheInterface;
use Symfony\Component\Cache\Simple\ApcuCache;
use Symfony\Component\Cache\Simple\FilesystemCache;
use TheCodingMachine\GraphQLite\Http\Psr15GraphQLMiddlewareBuilder;
use TheCodingMachine\GraphQLite\SchemaFactory;
use Zend\Stratigility\MiddlewarePipe;
Expand All @@ -261,7 +261,7 @@ return new Picotainer([
return $builder->createMiddleware();
},
CacheInterface::class => function() {
return new ApcuCache();
return new FilesystemCache();
},
Schema::class => function(ContainerInterface $container) {
// The magic happens here. We create a schema using GraphQLite SchemaFactory.
Expand Down

0 comments on commit 87d2e68

Please sign in to comment.