src/Autoloader/Autoloader.php
/**
     * Automatically find the class and load it.
     *
     * @param string $className
     */
Automatically find the class and load it.
@param string $className
Automatically find the class and load it . @param string $className
public static function autoload($className)
    {
        $directories = dirname(dirname(__DIR__));
        foreach (self::$autoloadPathArray as $path) {
            $file = $directories . DIRECTORY_SEPARATOR . $path . DIRECTORY_SEPARATOR . $className . '.php';
            $file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
            if (is_file($file)) {
                include_once $file;
                break;
            }
        }
    }
public static function autoload ( $ className ) { $ directories = dirname ( dirname ( __DIR__ ) ) ; foreach ( self :: $ autoloadPathArray as $ path ) { $ file = $ directories . DIRECTORY_SEPARATOR . $ path . DIRECTORY_SEPARATOR . $ className . '.php' ; $ file = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ file ) ; if ( is_file ( $ file ) ) { include_once $ file ; break ; } } }
Automatically find the class and load it.
Automatically find the class and load it .