2) { throw new RuntimeException('Autoloader cannot handle 2 namespaces in the same file'); } $prefix = isset($namespaces[1]) && count($namespaces[1]) ? reset($namespaces[1]) . '\\' : ''; foreach ($classes[1] as $class) { $mapping[strtolower($prefix . $class)] = $path; } return $mapping; } } ini_set('unserialize_callback_func', 'spl_autoload_call'); spl_autoload_register('Autoloader::autoload'); Autoloader::reload(true);