Skip to content

Commit

Permalink
Merge pull request #67 from ivoba/master
Browse files Browse the repository at this point in the history
fixed apc.enable_cli
  • Loading branch information
moufmouf committed Jun 1, 2020
2 parents de47f36 + bd64211 commit 3c0b7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/GraphqliteCompilerPass.php
Expand Up @@ -260,7 +260,7 @@ public function process(ContainerBuilder $container): void
$this->mapAdderToTag('graphql.type_mapper_factory', 'addTypeMapperFactory', $container, $schemaFactory);

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

0 comments on commit 3c0b7d7

Please sign in to comment.