Skip to content

Commit 0a1437c

Browse files
committed
[HttpKernel][DebugBundle] Always call CliDumper setDisplayOptions method
1 parent 430f7a8 commit 0a1437c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

DependencyInjection/DebugExtension.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
2121
use Symfony\Component\DependencyInjection\Reference;
2222
use Symfony\Component\VarDumper\Caster\ReflectionCaster;
23-
use Symfony\Component\VarDumper\Dumper\CliDumper;
2423
use Symfony\Component\VarDumper\Dumper\HtmlDumper;
2524

2625
/**
@@ -85,13 +84,11 @@ public function load(array $configs, ContainerBuilder $container)
8584
;
8685
}
8786

88-
if (method_exists(CliDumper::class, 'setDisplayOptions')) {
89-
$container->getDefinition('var_dumper.cli_dumper')
90-
->addMethodCall('setDisplayOptions', [[
91-
'fileLinkFormat' => new Reference('debug.file_link_formatter', ContainerBuilder::IGNORE_ON_INVALID_REFERENCE),
92-
]])
93-
;
94-
}
87+
$container->getDefinition('var_dumper.cli_dumper')
88+
->addMethodCall('setDisplayOptions', [[
89+
'fileLinkFormat' => new Reference('debug.file_link_formatter', ContainerBuilder::IGNORE_ON_INVALID_REFERENCE),
90+
]])
91+
;
9592

9693
if (!class_exists(Command::class) || !class_exists(ServerLogCommand::class)) {
9794
$container->removeDefinition('monolog.command.server_log');

0 commit comments

Comments
 (0)