Skip to content

Commit e3239f4

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Fix debug config reference dump_destination
2 parents c3f3ba9 + cf7fcc1 commit e3239f4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

reference/configuration/debug.rst

+8-3
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)