/** * Used for internal classes, which cannot use the Autoloader * * They will be required in a traditional way without any index or searching. * * @param String $class The class name * @param String $path The path of the class * * @return void */ public function registerClass($class, $path) { if (strpos($class, "\\") === false) { $class = __NAMESPACE__ . "\\" . $class; } Autoloader::normalizeClass($class); $this->_classes[$class] = $path; }
/** * Used for internal classes, which cannot use the Autoloader * * They will be required in a traditional way without any index or searching. * * @param String $class The class name * @param String $path The path of the class * * @return void */ public function registerClass($class, $path) { Autoloader::normalizeClass($class); $this->_classes[$class] = $path; }