8000 fix cache pool wiring · symfony/symfony@fba8f64 · GitHub
[go: up one dir, main page]

Skip to content

Commit fba8f64

Browse files
committed
fix cache pool wiring
1 parent 6bf21a4 commit fba8f64

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/CachePoolPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ public function process(ContainerBuilder $container)
5959

6060
private function getNamespace($id)
6161
{
62-
return substr(str_replace('/', '-', base64_encode(md5('symfony.'.$id, true)), 0, 10));
62+
return substr(str_replace('/', '-', base64_encode(md5('symfony.'.$id, true))), 0, 10);
6363
}
6464
}

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,15 +560,13 @@ private function addCacheSection(ArrayNodeDefinition $rootNode)
560560
->arrayNode('pool')
561561
->useAttributeAsKey('name')
562562
->prototype('array')
563-
->beforeNormalization()
564-
->end()
565563
->children()
566564
->enumNode('type')
567565
->info('The cache pool type (one of "apcu", "doctrine", "psr6" or "filesystem")')
568566
->isRequired()
569567
->values(array('apcu', 'doctrine', 'psr6', 'filesystem'))
570568
->end()
571-
->integerNode('default_lifetime')->default(0)->end()
569+
->integerNode('default_lifetime')->defaultValue(0)->end()
572570
->scalarNode('cache_provider_service')->defaultNull()->end()
573571
->scalarNode('directory')->defaultNull()->end()
574572
->end()

0 commit comments

Comments
 (0)
0