added a BC comment

This commit is contained in:
Fabien Potencier 2014-02-28 09:17:36 +01:00
parent 79999ffd5c
commit e756686bb4

View File

@ -67,6 +67,9 @@ abstract class FileLoader extends Loader
$loader = $this->resolve($resource, $type);
if ($loader instanceof FileLoader && null !== $this->currentDir) {
// we fallback to the current locator to keep BC
// as some some loaders do not call the parent __construct()
// @deprecated should be removed in 3.0
$locator = $loader->getLocator() ?: $this->locator;
$resource = $locator->locate($resource, $this->currentDir, false);
}