{ if (strpos($class, "\\") === false) { $class = __NAMESPACE__ . "\\" . $class; } Autoloader::normalizeClass($class); $this->_classes[$class] = $path; } /** * Implements autoloading for internal classes * * @param String $class The class name * * @throws AutoloaderException_InternalClassNotLoadable * @throws AutoloaderException_Include * @throws AutoloaderException_Include_FileNotExists * @throws AutoloaderException_Include_ClassNotDefined * @return void */ protected function doAutoload($class) { if (!\array_key_exists($class, $this->_classes)) { throw new AutoloaderException_InternalClassNotLoadable($class); } $this->loadClass($class, $this->_classes[$class]); } } /** * The class constructor is called. */ InternalAutoloader::classConstructor();