Skip to content

Commit 7a8968e

Browse files
committed
Add WorflowGuardListenerPass only if it exists
1 parent afc557e commit 7a8968e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function build(ContainerBuilder $container)
168168
$container->addCompilerPass(new CachePoolClearerPass(), PassConfig::TYPE_AFTER_REMOVING);
169169
$container->addCompilerPass(new CachePoolPrunerPass(), PassConfig::TYPE_AFTER_REMOVING);
170170
$this->addCompilerPassIfExists($container, FormPass::class);
171-
$container->addCompilerPass(new WorkflowGuardListenerPass());
171+
$this->addCompilerPassIfExists($container, WorkflowGuardListenerPass::class);
172172
$container->addCompilerPass(new ResettableServicePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
173173
$container->addCompilerPass(new RegisterLocaleAwareServicesPass());
174174
$container->addCompilerPass(new TestServiceContainerWeakRefPass(), PassConfig::TYPE_BEFORE_REMOVING, -32);

0 commit comments

Comments
 (0)