Skip to content

Commit 7bb3860

Browse files
vinceAmstoutzjaviereguiluz
authored andcommitted
Fix debug config reference dump_destination
1 parent 32fd115 commit 7bb3860

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

reference/configuration/debug.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,13 @@ Typically, you would set this to ``php://stderr``:
9595
.. code-block:: php
9696
9797
// config/packages/debug.php
98-
$container->loadFromExtension('debug', [
99-
'dump_destination' => 'php://stderr',
100-
]);
98+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
99+
100+
return static function (ContainerConfigurator $container): void {
101+
$container->extension('debug', [
102+
'dump_destination' => 'tcp://%env(VAR_DUMPER_SERVER)%',
103+
]);
104+
};
105+
101106
102107
Configure it to ``"tcp://%env(VAR_DUMPER_SERVER)%"`` in order to use the :ref:`ServerDumper feature <var-dumper-dump-server>`.

0 commit comments

Comments
 (0)