Skip to content

Commit bd64211

Browse files
committed
fixed apc.enable_cli
1 parent de47f36 commit bd64211

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)