Skip to content

Commit 81758d2

Browse files
[Framework] Deprecate the framework.validation.cache config option
1 parent bb860bf commit 81758d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CHANGELOG
1212
* Add `RateLimiterFactoryInterface` as an alias of the `limiter` service
1313
* Add `framework.validation.disable_translation` option
1414
* Add support for signal plain name in the `messenger.stop_worker_on_signals` configuration
15+
* Deprecate the `framework.validation.cache` option
1516

1617
7.2
1718
---

DependencyInjection/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,9 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
10341034
->info('Validation configuration')
10351035
->{$enableIfStandalone('symfony/validator', Validation::class)}()
10361036
->children()
1037-
->scalarNode('cache')->end()
1037+
->scalarNode('cache')
1038+
->setDeprecated('symfony/framework-bundle', '7.3', 'Setting the "%path%.%node%" configuration option is deprecated. It will be removed in version 8.0.')
1039+
->end()
10381040
->booleanNode('enable_attributes')->{class_exists(FullStack::class) ? 'defaultFalse' : 'defaultTrue'}()->end()
10391041
->arrayNode('static_method')
10401042
->defaultValue(['loadValidatorMetadata'])

0 commit comments

Comments
 (0)