File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
components/dependency_injection Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -497,11 +497,12 @@ serves at dumping the compiled container::
497
497
498
498
.. tip ::
499
499
500
- The ``file_put_contents() `` function is not atomic. That could cause issues
501
- in a production environment with multiple concurrent requests. Instead, use
502
- the :ref: `dumpFile() method <filesystem-dumpfile >` from Symfony Filesystem
503
- component or other methods provided by Symfony (e.g. ``$containerConfigCache->write() ``)
504
- which are atomic.
500
+ The ``file_put_contents() `` function is not atomic. This can cause issues in
501
+ production environments with multiple concurrent requests. Instead, use the
502
+ :ref: `dumpFile() method <filesystem-dumpfile >` from the
503
+ :doc: `Filesystem component </components/filesystem >` or other atomic methods
504
+ provided by Symfony (e.g. the ``$containerConfigCache->write() `` method from
505
+ the :doc: `Config component </components/config >`).
505
506
506
507
``ProjectServiceContainer `` is the default name given to the dumped container
507
508
class. However, you can change this with the ``class `` option when you
You can’t perform that action at this time.
0 commit comments