Skip to content

Commit

Permalink
routing[https]: fix php configuration
Browse files Browse the repository at this point in the history
fix using of nonexisting `$container->setParameter` method
  • Loading branch information
kaznovac committed Aug 29, 2023
1 parent 9786553 commit 419c79d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2523,8 +2523,10 @@ method) or globally with these configuration parameters:
.. code-block:: php
// config/services.php
$container->setParameter('router.request_context.scheme', 'https');
$container->setParameter('asset.request_context.secure', true);
$container->parameters()
->set('router.request_context.scheme', 'https')
->set('asset.request_context.secure', true)
;
Outside of console commands, use the ``schemes`` option to define the scheme of
each route explicitly:
Expand Down

0 comments on commit 419c79d

Please sign in to comment.