Skip to content

Commit e756686

Browse files
committed
added a BC comment
1 parent 79999ff commit e756686

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Config/Loader/FileLoader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
6767
$loader = $this->resolve($resource, $type);
6868

6969
if ($loader instanceof FileLoader && null !== $this->currentDir) {
70+
// we fallback to the current locator to keep BC
71+
// as some some loaders do not call the parent __construct()
72+
// @deprecated should be removed in 3.0
7073
$locator = $loader->getLocator() ?: $this->locator;
7174
$resource = $locator->locate($resource, $this->currentDir, false);
7275
}

0 commit comments

Comments
 (0)