Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d122e48

Browse files
committed
[Validator] Remove pre 3.0 ApcCache leftovers
Remove some lefover references to Symfony\Component\Validator\Mapping\Cache\ApcCache. This class was removed in commit 2a6b629.
1 parent 307ad07 commit d122e48

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode)
436436
->info('validation configuration')
437437
->canBeEnabled()
438438
->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()
445440
->booleanNode('enable_annotations')->defaultFalse()->end()
446441
->arrayNode('static_method')
447442
->defaultValue(array('loadValidatorMetadata'))

src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
<service id="validator.mapping.class_metadata_factory" alias="validator" public="false" />
3030

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-
3531
<service id="validator.validator_factory" class="Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory" public="false">
3632
<argument type="service" id="service_container" />
3733
<argument type="collection" />

0 commit comments

Comments
 (0)