Skip to content

Commit 0f3ecbf

Browse files
committed
Fixes after the review
1 parent 6e3404f commit 0f3ecbf

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

performance.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ The preload file path is the same as the compiled service container but with the
122122
; php.ini
123123
opcache.preload=/path/to/project/var/cache/prod/srcApp_KernelProdContainer.preload.php
124124
125-
Use the :ref:`container.no_preload <dic-tags-container-nopreload>` and
126-
:ref:`container.preload <dic-tags-container-preload>` service tags to define
125+
Use the :ref:`container.preload <dic-tags-container-preload>` and
126+
:ref:`container.no_preload <dic-tags-container-nopreload>` service tags to define
127127
which classes should or should not be preloaded PHP.
128128

129129
.. _performance-configure-opcache:

reference/dic_tags.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Tag Name Usage
1414
`auto_alias`_ Define aliases based on the value of container parameters
1515
`console.command`_ Add a command
1616
`container.hot_path`_ Add to list of always needed services
17-
`container.no_preload`_ Remove a class from the list of classes to preload by PHP
18-
`container.preload`_ Add some class to the list of classes to preload by PHP
17+
`container.no_preload`_ Remove a class from the list of classes preloaded by PHP
18+
`container.preload`_ Add some class to the list of classes preloaded by PHP
1919
`controller.argument_value_resolver`_ Register a value resolver for controller arguments such as ``Request``
2020
`data_collector`_ Create a class that collects custom data for the profiler
2121
`doctrine.event_listener`_ Add a Doctrine event listener
@@ -219,15 +219,14 @@ Use this tag with great caution, you have to be sure that the tagged service is
219219
container.no_preload
220220
--------------------
221221

222-
**Purpose**: Remove a class from the list of classes to preload by PHP
222+
**Purpose**: Remove a class from the list of classes preloaded by PHP
223223

224224
.. versionadded:: 5.1
225225

226226
The ``container.no_preload`` tag was introduced in Symfony 5.1.
227227

228-
When using `PHP class preloading`_, this tag allows you to define that some
229-
class should not be preloaded by PHP. Add this tag to any service and its
230-
related class won't be preloaded:
228+
Add this tag to a service and its class won't be preloaded when using
229+
`PHP class preloading`_:
231230

232231
.. configuration-block::
233232

@@ -266,15 +265,16 @@ related class won't be preloaded:
266265
container.preload
267266
-----------------
268267

269-
**Purpose**: Add some class to the list of classes to preload by PHP
268+
**Purpose**: Add some class to the list of classes preloaded by PHP
270269

271270
.. versionadded:: 5.1
272271

273272
The ``container.preload`` tag was introduced in Symfony 5.1.
274273

275274
When using `PHP class preloading`_, this tag allows you to define which PHP
276275
classes should be preloaded. This can improve performance by making some of the
277-
classes used by your service always available for all requests:
276+
classes used by your service always available for all requests (until the server
277+
is restarted):
278278

279279
.. configuration-block::
280280

0 commit comments

Comments
 (0)