We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f057bf commit a850718Copy full SHA for a850718
lib/Autoloader.php
@@ -11,14 +11,16 @@ class Autoloader
11
/**
12
* Autoloader constructor.
13
*/
14
- public function __construct() {
+ public function __construct()
15
+ {
16
spl_autoload_register(array($this, '__autoload'));
17
}
18
19
20
* @param string $class
21
- private function __autoload($class) {
22
+ private function __autoload($class)
23
24
$class = str_replace('\\', '/', $class); // revert path for old PHP on Linux
25
$dir = str_replace('\\', '/', __DIR__);
26
if(file_exists($dir . '/' . $class . '.php')) {
0 commit comments