Skip to content

Update parameter to compile-time prefix #18341

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 1 commit into from
May 24, 2023
Merged
Changes from all commits
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
11 changes: 8 additions & 3 deletions performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ container into a single file, which could improve performance when using
# config/services.yaml
parameters:
# ...
container.dumper.inline_factories: true
.container.dumper.inline_factories: true

.. code-block:: xml

Expand All @@ -72,7 +72,7 @@ container into a single file, which could improve performance when using

<parameters>
<!-- ... -->
<parameter key="container.dumper.inline_factories">true</parameter>
<parameter key=".container.dumper.inline_factories">true</parameter>
</parameters>
</container>

Expand All @@ -81,10 +81,15 @@ container into a single file, which could improve performance when using
// config/services.php

// ...
$container->parameters()->set('container.dumper.inline_factories', true);
$container->parameters()->set('.container.dumper.inline_factories', true);

.. _performance-use-opcache:

.. tip::

The ``.`` prefix denotes a parameter that is only used during compilation of the container.
See :ref:`Configuration Parameters <configuration-parameters>` for more details.

Use the OPcache Byte Code Cache
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down