File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ Or inside assetic, do
3838 .. caution ::
3939
4040 You should follow the Symfony documentation about generating URLs
41- in the console: `Configuring The Request Context Globally `_.
41+ in the console: `Forcing HTTPS on Generated URLs `_, as the console is unaware
42+ of the host/port combination you use during a request. You can also set the
43+ `HTTP_HOST ` environment variable to hold your hostname including the port you
44+ use (i.e. `localhost:8443 `). You can also use the `setHost ` and `setPort `
45+ methods on the `Router ` object to set it at runtime.
4246
4347.. tip ::
4448
@@ -58,4 +62,4 @@ This command lists all exposed routes:
5862 # Symfony 3
5963 $ php bin/console fos:js-routing:debug [name]
6064
61- .. _`Configuring The Request Context Globally ` : http ://symfony.com/doc/current/cookbook/console/sending_emails .html#configuring-the-request-context-globally
65+ .. _`Forcing HTTPS on Generated URLs ` : https ://symfony.com/doc/current/routing .html#forcing-https-on-generated-urls
You can’t perform that action at this time.
0 commit comments