prevent calling get() for service_container service
This commit is contained in:
parent
a53aba327e
commit
2d46bd4812
@ -274,6 +274,10 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
return $builder->getAlias($serviceId);
|
return $builder->getAlias($serviceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ('service_container' === $serviceId) {
|
||||||
|
return $builder;
|
||||||
|
}
|
||||||
|
|
||||||
// the service has been injected in some special way, just return the service
|
// the service has been injected in some special way, just return the service
|
||||||
return $builder->get($serviceId);
|
return $builder->get($serviceId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user