Skip to content

Commit 1a8ee4f

Browse files
Merge branch '2.7' into 2.8
* 2.7: add files used in FileResource objects
2 parents 0114091 + 3af65d7 commit 1a8ee4f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ public function addClassResource(\ReflectionClass $class)
260260
}
261261

262262
do {
263-
$this->addResource(new FileResource($class->getFileName()));
263+
if (is_file($class->getFileName())) {
264+
$this->addResource(new FileResource($class->getFileName()));
265+
}
264266
} while ($class = $class->getParentClass());
265267

266268
return $this;

src/Symfony/Component/Routing/Tests/Fixtures/bar.xml

Whitespace-only changes.

0 commit comments

Comments
 (0)