File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,18 @@ class GraphqliteCompilerPass implements CompilerPassInterface
91
91
*/
92
92
private $ annotationReader ;
93
93
94
+ /**
95
+ * @var string
96
+ */
97
+ private $ cacheDir ;
98
+
94
99
/**
95
100
* You can modify the container here before it is dumped to PHP code.
96
101
*/
97
102
public function process (ContainerBuilder $ container ): void
98
103
{
99
104
$ reader = $ this ->getAnnotationReader ();
105
+ $ this ->cacheDir = $ container ->getParameter ('kernel.cache_dir ' );
100
106
//$inputTypeUtils = new InputTypeUtils($reader, $namingStrategy);
101
107
102
108
// Let's scan the whole container and tag the services that belong to the namespace we want to inspect.
@@ -442,7 +448,7 @@ private function getPsr16Cache(): CacheInterface
442
448
if (function_exists ('apcu_fetch ' )) {
443
449
$ this ->cache = new Psr16Cache (new ApcuAdapter ('graphqlite_bundle ' ));
444
450
} else {
445
- $ this ->cache = new Psr16Cache (new PhpFilesAdapter ('graphqlite_bundle ' ));
451
+ $ this ->cache = new Psr16Cache (new PhpFilesAdapter ('graphqlite_bundle ' , 0 , $ this -> cacheDir ));
446
452
}
447
453
}
448
454
return $ this ->cache ;
You can’t perform that action at this time.
0 commit comments