Skip to content

Commit 3fab417

Browse files
committed
[FrameworkBundle] Always add CacheCollectorPass
1 parent 5116846 commit 3fab417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ public function build(ContainerBuilder $container)
157157
$container->addCompilerPass(new RegisterReverseContainerPass(true));
158158
$container->addCompilerPass(new RegisterReverseContainerPass(false), PassConfig::TYPE_AFTER_REMOVING);
159159
$container->addCompilerPass(new SessionPass());
160+
$container->addCompilerPass(new CacheCollectorPass(), PassConfig::TYPE_BEFORE_REMOVING);
160161

161162
if ($container->getParameter('kernel.debug')) {
162163
$container->addCompilerPass(new AddDebugLogProcessorPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 2);
163164
$container->addCompilerPass(new UnusedTagsPass(), PassConfig::TYPE_AFTER_REMOVING);
164165
$container->addCompilerPass(new ContainerBuilderDebugDumpPass(), PassConfig::TYPE_BEFORE_REMOVING, -255);
165-
$container->addCompilerPass(new CacheCollectorPass(), PassConfig::TYPE_BEFORE_REMOVING);
166166
}
167167
}
168168

0 commit comments

Comments
 (0)