Skip to content

Commit dd4acae

Browse files
committed
bug #16795 [FrameworkBundle][Validator] Fix apc cache service & config (ogizanagi)
This PR was merged into the 3.0 branch. Discussion ---------- [FrameworkBundle][Validator] Fix apc cache service & config | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16793 | License | MIT | Doc PR | - _Keep track of #16794 (comment) _NOTE_: This PR is on standby. If #16822 is merged, this one might probably be closed, as everything will be done during the merge. Commits ------- 94a1728 [FrameworkBundle][Validator] Fix apc cache service & config
2 parents 375b3b6 + 94a1728 commit dd4acae

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

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

+1-14
Original file line numberDiff line numberDiff line change
@@ -454,20 +454,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode)
454454
->info('validation configuration')
455455
->canBeEnabled()
456456
->children()
457-
->scalarNode('cache')
458-
->beforeNormalization()
459-
// Can be removed in 3.0, once ApcCache support is dropped
460-
->ifString()->then(function ($v) {
461-
if ('apc' === $v) {
462-
@trigger_error('The ability to pass "apc" as the framework.validation.cache configuration key value is deprecated since version 2.8 and will be removed in 3.0. Use the "validator.mapping.cache.doctrine.apc" service id instead.', E_USER_DEPRECATED);
463-
464-
return 'validator.mapping.cache.apc';
465-
}
466-
467-
return $v;
468-
})
469-
->end()
470-
->end()
457+
->scalarNode('cache')->end()
471458
->booleanNode('enable_annotations')->defaultFalse()->end()
472459
->arrayNode('static_method')
473460
->defaultValue(array('loadValidatorMetadata'))

0 commit comments

Comments
 (0)