Skip to content

Commit 40e34d4

Browse files
committed
[#1916] Removing some code that is new in 2.1 - should not be in the 2.0 branch
1 parent 619fac0 commit 40e34d4

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

cookbook/console/generating_urls.rst

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,6 @@ what URL it should use when generating URLs.
1616
There are two ways of configuring the request context: at the application level
1717
and per Command.
1818

19-
Configuring the Request Context globally
20-
----------------------------------------
21-
22-
To configure the Request Context - which is used by the URL Generator - you can
23-
redefine the parameters it uses as default values to change the default host
24-
(localhost) and scheme (http). Note that this does not impact URLs generated
25-
via normal web requests, since those will override the defaults.
26-
27-
.. configuration-block::
28-
29-
.. code-block:: yaml
30-
31-
# app/config/parameters.yml
32-
parameters:
33-
router.request_context.host: example.org
34-
router.request_context.scheme: https
35-
36-
.. code-block:: xml
37-
38-
<!-- app/config/parameters.xml -->
39-
<?xml version="1.0" encoding="UTF-8"?>
40-
41-
<container xmlns="http://symfony.com/schema/dic/services"
42-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
43-
44-
<parameters>
45-
<parameter key="router.request_context.host">example.org</parameter>
46-
<parameter key="router.request_context.scheme">https</parameter>
47-
</parameters>
48-
</container>
49-
50-
.. code-block:: php
51-
52-
// app/config/config_test.php
53-
$container->setParameter('router.request_context.host', 'example.org');
54-
$container->setParameter('router.request_context.scheme', 'https');
55-
5619
Configuring the Request Context per Command
5720
-------------------------------------------
5821

0 commit comments

Comments
 (0)