public function registerClass($className, $includeFile)
    {
        if (array_key_exists($className, $this->includePaths)) {
            throw new \Exception("Error: Class '$className' is already registered!");
        }

        $this->includePaths[$className] = $includeFile;
    }
public function registerClass($className, $includeFile)
    {
        if (array_key_exists($className, $this->includePaths)) {
            throw new \Exception("Error: Class '$className' is already registered!");
        }

        $this->includePaths[$className] = $includeFile;
    }
public function registerClass ( $ className , $ includeFile ) { if ( array_key_exists ( $ className , $ this -> includePaths ) ) { throw new \ Exception ( "Error: Class '$className' is already registered!" ) ; } $ this -> includePaths [ $ className ] = $ includeFile ; }
Register a determinated class to autoloader

Example:
$classLoader = ClassLoader::getInstance();
$classLoader->registerClass('MyClass', '/classes/class.myclass.php');

This is useful when we want to add autoloading to a class without naming
convention and therefore the class name is different of class file,
or the class have not not namespaces, etc.
Register a determinated class to autoloader