1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-30 04:29:03 +01:00

Fixing error where the file finder was throwing an exec exception even when disabled.

This commit is contained in:
Craig Wann 2019-06-02 03:52:29 +00:00
parent a7b3d05030
commit 114388bbee

View File

@ -51,7 +51,7 @@ class ClassFinder
self::$classmap = new ClassmapFinder($classmapFactory); self::$classmap = new ClassmapFinder($classmapFactory);
} }
if (!(self::$files instanceof FilesFinder)) { if (!(self::$files instanceof FilesFinder) && self::$useFilesSupport) {
$filesFactory = new FilesEntryFactory(self::$config); $filesFactory = new FilesEntryFactory(self::$config);
self::$files = new FilesFinder($filesFactory); self::$files = new FilesFinder($filesFactory);
} }