Skip to content

Commit f592e45

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: Fix debug config reference dump_destination
2 parents 79fd650 + e3239f4 commit f592e45

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
@@ -91,8 +91,13 @@ Typically, you would set this to ``php://stderr``:
9191
.. code-block:: php
9292
9393
// config/packages/debug.php
94-
$container->loadFromExtension('debug', [
95-
'dump_destination' => 'php://stderr',
96-
]);
94+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
95+
96+
return static function (ContainerConfigurator $container): void {
97+
$container->extension('debug', [
98+
'dump_destination' => 'tcp://%env(VAR_DUMPER_SERVER)%',
99+
]);
100+
};
101+
97102
98103
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)