Skip to content

Commit e32a62e

Browse files
author
Bert ter Heide
committed
Clear service reference graph
1 parent bf1192d commit e32a62e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ public function describe(OutputInterface $output, $object, array $options = [])
9292
default:
9393
throw new \InvalidArgumentException(sprintf('Object of type "%s" is not describable.', get_debug_type($object)));
9494
}
95+
96+
if ($object instanceof ContainerBuilder) {
97+
$object->getCompiler()->getServiceReferenceGraph()->clear();
98+
}
9599
}
96100

97101
protected function getOutput(): OutputInterface

0 commit comments

Comments
 (0)