Skip to content

Commit 10fcb66

Browse files
committed
[FrameworkBundle] Deprecate the router.cache_dir config option
Signed-off-by: Quentin Devos <4972091+Okhoshi@users.noreply.github.com>
1 parent 2deddaa commit 10fcb66

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Move the Router `cache_dir` to `kernel.build_dir`
8+
* Deprecate the `router.cache_dir` config option
89

910
7.0
1011
---

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,10 @@ private function addRouterSection(ArrayNodeDefinition $rootNode): void
613613
->children()
614614
->scalarNode('resource')->isRequired()->end()
615615
->scalarNode('type')->end()
616-
->scalarNode('cache_dir')->defaultValue('%kernel.build_dir%')->end()
616+
->scalarNode('cache_dir')
617+
->defaultValue('%kernel.build_dir%')
618+
->setDeprecated('symfony/framework-bundle', '7.1', 'Setting the "%path%.%node%" configuration option is deprecated. It will be removed in version 8.0.')
619+
->end()
617620
->scalarNode('default_uri')
618621
->info('The default URI used to generate URLs in a non-HTTP context')
619622
->defaultNull()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy