Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a83b07

Browse files
committed
[FrameworkBundle] Add missing entry about framework.router.context
1 parent 37a8863 commit 5a83b07

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)