[FrameworkBundle][Validator] Fix apc cache service & config
This commit is contained in:
parent
375b3b6c3c
commit
94a17282b8
@ -454,20 +454,7 @@ class Configuration implements ConfigurationInterface
|
||||
->info('validation configuration')
|
||||
->canBeEnabled()
|
||||
->children()
|
||||
->scalarNode('cache')
|
||||
->beforeNormalization()
|
||||
// Can be removed in 3.0, once ApcCache support is dropped
|
||||
->ifString()->then(function ($v) {
|
||||
if ('apc' === $v) {
|
||||
@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);
|
||||
|
||||
return 'validator.mapping.cache.apc';
|
||||
}
|
||||
|
||||
return $v;
|
||||
})
|
||||
->end()
|
||||
->end()
|
||||
->scalarNode('cache')->end()
|
||||
->booleanNode('enable_annotations')->defaultFalse()->end()
|
||||
->arrayNode('static_method')
|
||||
->defaultValue(array('loadValidatorMetadata'))
|
||||
|
Reference in New Issue
Block a user