[DI] dont fail on missing classes when resource tracking is disabled
This commit is contained in:
parent
654dc2209b
commit
236565c87e
@ -368,7 +368,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
||||
$resource = new ClassExistenceResource($class, false);
|
||||
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
|
||||
} else {
|
||||
$classReflector = new \ReflectionClass($class);
|
||||
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
|
||||
}
|
||||
} catch (\ReflectionException $e) {
|
||||
if ($throw) {
|
||||
|
Reference in New Issue
Block a user