Skip to content

Commit e110f6e

Browse files
committed
Merge pull request #67 from chukShirley/hotfix/66
Remove exception when class map autoloader cannot find file. Resolves…
2 parents 2f5ef08 + f684083 commit e110f6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ToolkitApi/autoload.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@
4646
);
4747

4848
$file = $classmap[$class];
49-
if (!is_readable($file)) {
50-
throw new Exception("File $file Not Found");
49+
if (file_exists($file)) {
50+
require_once $file;
5151
}
5252

53-
require_once $file;
5453
return;
55-
});
54+
});

0 commit comments

Comments
 (0)