Skip to content

Commit aefb426

Browse files
committed
minor #19597 Fix debug config reference dump_destination (vinceAmstoutz)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- Fix debug config reference dump_destination The method `loadFromExtension` does not exist in the `Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;` The only way to do this is to use the `extension` method, which then calls `loadFromExtension `, as you can see in the class when using `CRTL+F` : ![image](https://github.com/symfony/symfony-docs/assets/46444652/a330f98f-c7ba-42f2-baa5-672d50d3169e) Commits ------- 7bb3860 Fix debug config reference dump_destination
2 parents 25ee23d + 7bb3860 commit aefb426

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)