Skip to content

Commit 778ee78

Browse files
committed
minor #18797 [DependencyInjection] routing[https]: fix php configuration (kaznovac)
This PR was merged into the 6.3 branch. Discussion ---------- [DependencyInjection] routing[https]: fix php configuration fix using of nonexisting `$container->setParameter` method <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 419c79d routing[https]: fix php configuration
2 parents d183916 + 419c79d commit 778ee78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

routing.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,8 +2523,10 @@ method) or globally with these configuration parameters:
25232523
.. code-block:: php
25242524
25252525
// config/services.php
2526-
$container->setParameter('router.request_context.scheme', 'https');
2527-
$container->setParameter('asset.request_context.secure', true);
2526+
$container->parameters()
2527+
->set('router.request_context.scheme', 'https')
2528+
->set('asset.request_context.secure', true)
2529+
;
25282530
25292531
Outside of console commands, use the ``schemes`` option to define the scheme of
25302532
each route explicitly:

0 commit comments

Comments
 (0)