From 4f690a31c62f9efed13392f8c8154adfd41e020c Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Thu, 10 Jan 2019 09:28:12 +0100 Subject: [PATCH] [DebugClassLoader] Readd findFile() method --- src/Symfony/Component/Debug/DebugClassLoader.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Symfony/Component/Debug/DebugClassLoader.php b/src/Symfony/Component/Debug/DebugClassLoader.php index dd2f169ce4f9..c5b78c90f294 100644 --- a/src/Symfony/Component/Debug/DebugClassLoader.php +++ b/src/Symfony/Component/Debug/DebugClassLoader.php @@ -124,6 +124,11 @@ public static function disable() } } + public function findFile($class): ?string + { + return $this->isFinder ? $this->classLoader[0]->findFile($class) ?: null : null; + } + /** * Loads the given class or interface. *