Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update console note #463

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions Resources/doc/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ Or inside assetic, do
.. caution::

You should follow the Symfony documentation about generating URLs
in the console: `Configuring The Request Context Globally`_.
in the console: `Forcing HTTPS on Generated URLs`_, as the console is unaware
of the host/port combination you use during a request. You can also set the
`HTTP_HOST` environment variable to hold your hostname including the port you
use (i.e. `localhost:8443`). You can also use the `setHost` and `setPort`
methods on the `Router` object to set it at runtime.

.. tip::

Expand All @@ -58,4 +62,4 @@ This command lists all exposed routes:
# Symfony 3
$ php bin/console fos:js-routing:debug [name]

.. _`Configuring The Request Context Globally`: http://symfony.com/doc/current/cookbook/console/sending_emails.html#configuring-the-request-context-globally
.. _`Forcing HTTPS on Generated URLs`: https://symfony.com/doc/current/routing.html#forcing-https-on-generated-urls