Permalink
Browse files

[DI] dont fail on missing classes when resource tracking is disabled

  • Loading branch information...
nicolas-grekas committed Nov 15, 2018
1 parent 654dc22 commit 236565c87ed5243da04bdc5c9c3b2c5794c359dc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/DependencyInjection/ContainerBuilder.php
@@ -368,7 +368,7 @@ public function getReflectionClass($class, $throw = true)
$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) {

0 comments on commit 236565c

Please sign in to comment.