From 7bb3860a2eb3aeab02a9d769430a07c53bdb9844 Mon Sep 17 00:00:00 2001 From: Vincent Amstoutz Date: Sat, 24 Feb 2024 16:40:36 +0100 Subject: [PATCH] Fix debug config reference dump_destination --- reference/configuration/debug.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reference/configuration/debug.rst b/reference/configuration/debug.rst index 482396d2ae2..ddbf9365046 100644 --- a/reference/configuration/debug.rst +++ b/reference/configuration/debug.rst @@ -95,8 +95,13 @@ Typically, you would set this to ``php://stderr``: .. code-block:: php // config/packages/debug.php - $container->loadFromExtension('debug', [ - 'dump_destination' => 'php://stderr', - ]); + use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; + + return static function (ContainerConfigurator $container): void { + $container->extension('debug', [ + 'dump_destination' => 'tcp://%env(VAR_DUMPER_SERVER)%', + ]); + }; + Configure it to ``"tcp://%env(VAR_DUMPER_SERVER)%"`` in order to use the :ref:`ServerDumper feature `.