Skip to content

Commit 48c7fdf

Browse files
committed
Merge branch '5.0'
* 5.0: Hint for generating container preload file
2 parents 9fb0ea2 + 6d59941 commit 48c7fdf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

performance.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,13 @@ Starting from PHP 7.4, OPcache can compile and load classes at start-up and
9393
make them available to all requests until the server is restarted, improving
9494
performance significantly.
9595

96-
Symfony generates the file automatically with the list of classes to preload.
97-
The file path is the same as the file generated for the service container but
98-
with the ``preload`` suffix:
96+
During container compilation, Symfony generates the file with the list of
97+
classes to preload. The only requirement is that you need to set both
98+
``container.dumper.inline_factories`` and ``container.dumper.inline_class_loader``
99+
parameters to ``true``.
100+
101+
The preload file path is the same as the compiled service container but with the
102+
``preload`` suffix:
99103

100104
.. code-block:: ini
101105

0 commit comments

Comments
 (0)