File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed
src/Symfony/Bundle/FrameworkBundle
Tests/DependencyInjection Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -436,12 +436,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode)
436
436
->info ('validation configuration ' )
437
437
->canBeEnabled ()
438
438
->children ()
439
- ->scalarNode ('cache ' )
440
- ->beforeNormalization ()
441
- // Can be removed in 3.0, once ApcCache support is dropped
442
- ->ifString ()->then (function ($ v ) { return 'apc ' === $ v ? 'validator.mapping.cache.apc ' : $ v ; })
443
- ->end ()
444
- ->end ()
439
+ ->scalarNode ('cache ' )->end ()
445
440
->booleanNode ('enable_annotations ' )->defaultFalse ()->end ()
446
441
->arrayNode ('static_method ' )
447
442
->defaultValue (array ('loadValidatorMetadata ' ))
Original file line number Diff line number Diff line change 28
28
29
29
<service id =" validator.mapping.class_metadata_factory" alias =" validator" public =" false" />
30
30
31
- <service id =" validator.mapping.cache.apc" class =" Symfony\Component\Validator\Mapping\Cache\ApcCache" public =" false" >
32
- <argument >%validator.mapping.cache.prefix%</argument >
33
- </service >
34
-
35
31
<service id =" validator.validator_factory" class =" Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory" public =" false" >
36
32
<argument type =" service" id =" service_container" />
37
33
<argument type =" collection" />
Original file line number Diff line number Diff line change 38
38
<framework : translator enabled =" true" fallback =" fr" logging =" true" >
39
39
<framework : path >%kernel.root_dir%/Fixtures/translations</framework : path >
40
40
</framework : translator >
41
- <framework : validation enabled =" true" cache =" apc" />
41
+ <framework : validation enabled =" true" cache =" validator.mapping.cache.doctrine. apc" />
42
42
<framework : annotations cache =" file" debug =" true" file-cache-dir =" %kernel.cache_dir%/annotations" />
43
43
<framework : serializer enabled =" true" enable-annotations =" true" cache =" serializer.mapping.cache.apc" name-converter =" serializer.name_converter.camel_case_to_snake_case" />
44
44
</framework : config >
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ public function testValidation()
298
298
$ this ->assertSame ('addMethodMapping ' , $ calls [4 ][0 ]);
299
299
$ this ->assertSame (array ('loadValidatorMetadata ' ), $ calls [4 ][1 ]);
300
300
$ this ->assertSame ('setMetadataCache ' , $ calls [5 ][0 ]);
301
- $ this ->assertEquals (array (new Reference ('validator.mapping.cache.apc ' )), $ calls [5 ][1 ]);
301
+ $ this ->assertEquals (array (new Reference ('validator.mapping.cache.doctrine. apc ' )), $ calls [5 ][1 ]);
302
302
}
303
303
304
304
public function testValidationService ()
You can’t perform that action at this time.
0 commit comments