src/Foundation/ClassLoader.php
public function load($class)
    {
        if ($class[0] == '\\') $class = substr($class, 1);
        $class = str_replace(array('\\', '_'), DIRECTORY_SEPARATOR, $class).'.php';

        foreach ($this->directories as $directory)
        {
            if (file_exists($path = $directory.DIRECTORY_SEPARATOR.$class))
            {
                require_once $path;
                return true;
            }
        }
        return false;
    }
public function load($class)
    {
        if ($class[0] == '\\') $class = substr($class, 1);
        $class = str_replace(array('\\', '_'), DIRECTORY_SEPARATOR, $class).'.php';

        foreach ($this->directories as $directory)
        {
            if (file_exists($path = $directory.DIRECTORY_SEPARATOR.$class))
            {
                require_once $path;
                return true;
            }
        }
        return false;
    }
public function load ( $ class ) { if ( $ class [ 0 ] == '\\' ) $ class = substr ( $ class , 1 ) ; $ class = str_replace ( array ( '\\' , '_' ) , DIRECTORY_SEPARATOR , $ class ) . '.php' ; foreach ( $ this -> directories as $ directory ) { if ( file_exists ( $ path = $ directory . DIRECTORY_SEPARATOR . $ class ) ) { require_once $ path ; return true ; } } return false ; }
Search and load a specific class. Used for auto-loader.

@param $class
@return bool
Search and load a specific class . Used for auto - loader .