Skip to content

Commit 596caf7

Browse files
committed
minor #35303 [FrameworkBundle] Add missing entry about framework.router.context (ogizanagi)
This PR was merged into the 5.1-dev branch. Discussion ---------- [FrameworkBundle] Add missing entry about framework.router.context | Q | A | ------------- | --- | Branch? | master <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Relates to #35281 <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | N/A Some minor tweaks about #35281 Commits ------- 5a83b07 [FrameworkBundle] Add missing entry about framework.router.context
2 parents de4c45c + 5a83b07 commit 596caf7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
5.1.0
55
-----
66

7+
* Added the `framework.router.context` configuration node to configure the `RequestContext`
78
* Made `MicroKernelTrait::configureContainer()` compatible with `ContainerConfigurator`
89
* Added a new `mailer.message_bus` option to configure or disable the message bus to use to send mails.
910
* Added flex-compatible default implementations for `MicroKernelTrait::registerBundles()` and `getProjectDir()`

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ private function addRouterSection(ArrayNodeDefinition $rootNode)
483483
->end()
484484
->booleanNode('utf8')->defaultFalse()->end()
485485
->arrayNode('context')
486-
->info('router request context')
486+
->info('The request context used to generate URLs in a non-HTTP context')
487487
->addDefaultsIfNotSet()
488488
->children()
489489
->scalarNode('host')->defaultValue('%router.request_context.host%')->end()

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
854854
$container->setParameter('request_listener.http_port', $config['http_port']);
855855
$container->setParameter('request_listener.https_port', $config['https_port']);
856856

857-
$requestContext = $container->findDefinition('router.request_context');
857+
$requestContext = $container->getDefinition('router.request_context');
858858
$requestContext->replaceArgument(0, $config['context']['base_url']);
859859
$requestContext->replaceArgument(2, $config['context']['host']);
860860
$requestContext->replaceArgument(3, $config['context']['scheme']);

0 commit comments

Comments
 (0)