From 8d899fd405ca4ccba244d8e66fb5021cf2a936b1 Mon Sep 17 00:00:00 2001 From: Andrii Sukhoi Date: Tue, 9 Jul 2024 15:57:25 +0200 Subject: [PATCH 1/2] Add mentions where to find configCache Added mention where to find ConfigCache class. To be used in $containerCache->write() --- components/dependency_injection/compilation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dependency_injection/compilation.rst b/components/dependency_injection/compilation.rst index 7f991e85b72..81326d3393b 100644 --- a/components/dependency_injection/compilation.rst +++ b/components/dependency_injection/compilation.rst @@ -500,7 +500,7 @@ serves at dumping the compiled container:: The ``file_put_contents()`` function is not atomic. That could cause issues in a production environment with multiple concurrent requests. Instead, use the :ref:`dumpFile() method ` from Symfony Filesystem - component or other methods provided by Symfony (e.g. ``$containerConfigCache->write()``) + component or other methods provided by Symfony (e.g. ``$containerConfigCache->write()`` which is part of Symfony Config component) which are atomic. ``ProjectServiceContainer`` is the default name given to the dumped container From f992a0261f38aada5463ef52e51e9015e37b8163 Mon Sep 17 00:00:00 2001 From: Andrii Sukhoi Date: Fri, 12 Jul 2024 09:43:14 +0200 Subject: [PATCH 2/2] Update components/dependency_injection/compilation.rst Co-authored-by: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com> --- components/dependency_injection/compilation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dependency_injection/compilation.rst b/components/dependency_injection/compilation.rst index 81326d3393b..27e8de1602e 100644 --- a/components/dependency_injection/compilation.rst +++ b/components/dependency_injection/compilation.rst @@ -500,7 +500,8 @@ serves at dumping the compiled container:: The ``file_put_contents()`` function is not atomic. That could cause issues in a production environment with multiple concurrent requests. Instead, use the :ref:`dumpFile() method ` from Symfony Filesystem - component or other methods provided by Symfony (e.g. ``$containerConfigCache->write()`` which is part of Symfony Config component) + component or other methods provided by Symfony (e.g. ``$containerConfigCache->write()`` + which is part of the :doc:`Config component `) which are atomic. ``ProjectServiceContainer`` is the default name given to the dumped container