8000 [FrameworkBundle] add documentation request context in Asset for use … by Warxcell · Pull Request #8653 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] add documentation request context in Asset for use … #8653

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

Merged
merged 2 commits into from
May 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions console/request_context.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ will override the defaults.
router.request_context.host: example.org
router.request_context.scheme: https
router.request_context.base_url: my/path
asset.request_context.base_path: %router.request_context.base_url%

.. code-block:: xml

Expand All @@ -48,6 +49,7 @@ will override the defaults.
<parameter key="router.request_context.host">example.org</parameter>
<parameter key="router.request_context.scheme">https</parameter>
<parameter key="router.request_context.base_url">my/path</parameter>
<parameter key="asset.request_context.base_path">%router.request_context.base_url%</parameter>
</parameters>

</container>
Expand All @@ -58,6 +60,7 @@ will override the defaults.
$container->setParameter('router.request_context.host', 'example.org');
$container->setParameter('router.request_context.scheme', 'https');
$container->setParameter('router.request_context.base_url', 'my/path');
$container->setParameter('asset.request_context.base_path', $container->getParameter('router.request_context.base_url'));

Configuring the Request Context per Command
-------------------------------------------
Expand Down
0