mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 12:08:47 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -40,6 +40,10 @@ class CheckDefinitionValidityPass implements CompilerPassInterface
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
foreach ($container->getDefinitions() as $id => $definition) {
|
||||
if ($definition->hasErrors()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// synthetic service is public
|
||||
if ($definition->isSynthetic() && !$definition->isPublic()) {
|
||||
throw new RuntimeException(\sprintf('A synthetic service ("%s") must be public.', $id));
|
||||
|
||||
Reference in New Issue
Block a user