Skip to content

Commit f684083

Browse files
committed
Remove exception when class map autoloader cannot find file. Resolves #66
1 parent 2f5ef08 commit f684083

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)