Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CHANGELOG
* Add `rate_limiter` configuration option to `messenger.transport` to allow rate limited transports using the RateLimiter component
* Remove `@internal` tag from secret vaults to allow them to be used directly outside the framework bundle and custom vaults to be added
* Deprecate `framework.form.legacy_error_messages` config node
* Add a `framework.router.cache_dir` configuration option to configure the default `Router` `cache_dir` option

6.1
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ private function addRouterSection(ArrayNodeDefinition $rootNode)
->children()
->scalarNode('resource')->isRequired()->end()
->scalarNode('type')->end()
->scalarNode('cache_dir')->defaultValue('%kernel.cache_dir%')->end()
->scalarNode('default_uri')
->info('The default URI used to generate URLs in a non-HTTP context')
->defaultNull()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,7 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
}

$container->setParameter('router.resource', $config['resource']);
$container->setParameter('router.cache_dir', $config['cache_dir']);
$router = $container->findDefinition('router.default');
$argument = $router->getArgument(2);
$argument['strict_requirements'] = $config['strict_requirements'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
service(ContainerInterface::class),
param('router.resource'),
[
'cache_dir' => param('kernel.cache_dir'),
'cache_dir' => param('router.cache_dir'),
'debug' => param('kernel.debug'),
'generator_class' => CompiledUrlGenerator::class,
'generator_dumper_class' => CompiledUrlGeneratorDumper::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ protected static function getBundleDefaultConfig()
'https_port' => 443,
'strict_requirements' => true,
'utf8' => true,
'cache_dir' => '%kernel.cache_dir%',
],
'session' => [
'enabled' => false,
Expand Down