|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|