diff --git a/Source/Config/Autoload.php b/Source/Config/Autoload.php index 79fc6b4..72c9ecb 100644 --- a/Source/Config/Autoload.php +++ b/Source/Config/Autoload.php @@ -22,8 +22,8 @@ class Autoload { if (null !== self::$instance) { - if(!spl_autoload_unregister(array(self::$instance, 'autoloader'))) { - throw new RuntimeException('Could not stop the autoload'); + if (!spl_autoload_unregister(array(self::$instance, 'autoloader'))) { + throw RuntimeException('Could not stop the autoload'); } self::$instance = null; @@ -43,8 +43,6 @@ class Autoload } $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; - include_once $folder.$fileName; + require_once $folder.$fileName; } } - -?>