Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit717663a

Browse files
authored
Fixing a bug where the dump() function depended on bundle ordering
1 parentd411301 commit717663a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ public function process(ContainerBuilder $container)
8585

8686
if ($container->getParameter('kernel.debug')) {
8787
$container->getDefinition('twig.extension.profiler')->addTag('twig.extension');
88-
$container->getDefinition('twig.extension.debug')->addTag('twig.extension');
88+
89+
// only register if the improved version from DebugBundle is *not* present
90+
if (!$container->has('twig.extension.dump')) {
91+
$container->getDefinition('twig.extension.debug')->addTag('twig.extension');
92+
}
8993
}
9094

9195
$twigLoader =$container->getDefinition('twig.loader.native_filesystem');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp