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:
parent
a7b3d05030
commit
114388bbee
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user