Skip to content

Commit 419c79d

Browse files
authored
routing[https]: fix php configuration
fix using of nonexisting `$container->setParameter` method
1 parent 9786553 commit 419c79d

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)