8000 feature #59814 [Framework] Deprecate the `framework.validation.cache`… · symfony/symfony@560a484 · GitHub
[go: up one dir, main page]

Skip to content

Commit 560a484

Browse files
feature #59814 [Framework] Deprecate the framework.validation.cache config option (alexandre-daubois)
This PR was merged into the 7.3 branch. Discussion ---------- [Framework] Deprecate the `framework.validation.cache` config option | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | yes | Issues | #59800 (comment) | License | MIT The option is no-op, I think we should deprecate it Commits ------- b7e4074 [Framework] Deprecate the `framework.validation.cache` config option
2 parents 77b8358 + b7e4074 commit 560a484

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

UPGRADE-7.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ FrameworkBundle
9292
* Not setting the `framework.property_info.with_constructor_extractor` option explicitly is deprecated
9393
because its default value will change in version 8.0
9494
* Deprecate the `--show-arguments` option of the `container:debug` command, as arguments are now always shown
95-
95+
* Deprecate the `framework.validation.cache` config option
9696

9797
SecurityBundle
9898
--------------

src/Symfony/Bundle/FrameworkBundle/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
---

src/Symfony/Bundle/FrameworkBundle/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)
0