File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2323 "illuminate/support" : " ^5.7|^6.0" ,
2424 "illuminate/cache" : " ^5.7|^6.0" ,
2525 "symfony/psr-http-message-bridge" : " ^1" ,
26- "zendframework/zend-diactoros" : " ^1.8.6"
26+ "zendframework/zend-diactoros" : " ^1.8.6" ,
27+ "symfony/cache" : " ^4.3 || ^5"
2728 },
2829 "require-dev" : {
2930 "orchestra/testbench" : " ^3.7.7 || ^4" ,
Original file line number Diff line number Diff line change 44
55use Illuminate \Contracts \Auth \Access \Gate ;
66use Illuminate \Contracts \Auth \Factory as AuthFactory ;
7+ use Symfony \Component \Cache \Adapter \ApcuAdapter ;
8+ use Symfony \Component \Cache \Adapter \PhpFilesAdapter ;
9+ use Symfony \Component \Cache \Psr16Cache ;
710use TheCodingMachine \GraphQLite \Context \Context ;
811use TheCodingMachine \GraphQLite \Exceptions \WebonyxErrorHandler ;
912use TheCodingMachine \GraphQLite \Laravel \Mappers \Parameters \ValidateFieldMiddleware ;
@@ -79,9 +82,9 @@ public function register()
7982
8083 $ this ->app ->singleton ('graphqliteCache ' , static function () {
8184 if (extension_loaded ('apcu ' ) && ini_get ('apc.enabled ' )) {
82- return new \ Symfony \ Component \ Cache \ Simple \ ApcuCache ( );
85+ return new Psr16Cache ( new ApcuAdapter () );
8386 } else {
84- return new \ Symfony \ Component \ Cache \ Simple \ PhpFilesCache ( );
87+ return new Psr16Cache ( new PhpFilesAdapter () );
8588 }
8689 });
8790
You can’t perform that action at this time.
0 commit comments