Skip to content

Commit 3c0b7d7

Browse files
authored
Merge pull request #67 from ivoba/master
fixed apc.enable_cli
2 parents de47f36 + bd64211 commit 3c0b7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/GraphqliteCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function process(ContainerBuilder $container): void
260260
$this->mapAdderToTag('graphql.type_mapper_factory', 'addTypeMapperFactory', $container, $schemaFactory);
261261

262262
// Configure cache
263-
if (ApcuAdapter::isSupported() && (PHP_SAPI !== 'cli' || filter_var(ini_get('apc.enabled_cli')))) {
263+
if (ApcuAdapter::isSupported() && (PHP_SAPI !== 'cli' || filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN))) {
264264
$container->setAlias('graphqlite.cache', 'graphqlite.apcucache');
265265
} else {
266266
$container->setAlias('graphqlite.cache', 'graphqlite.phpfilescache');

0 commit comments

Comments
 (0)