<?php

namespace Core;

class Autoloader
{
    static public function load($className)
    {
        $baseDir = dirname(dirname(realpath(__FILE__)));
        $classPath = implode('/', explode('\\', $className)) . '.php';
        require_once "{$baseDir}/{$classPath}";
    }
}

spl_autoload_register(__NAMESPACE__ . '\Autoloader::load');
<?php

namespace Core;

class Autoloader
{
    static public function load($className)
    {
        $baseDir = dirname(dirname(realpath(__FILE__))) . DIRECTORY_SEPARATOR;
        if($className == 'AmazonS3') {
            require_once "$baseDir/Aws/sdk.class.php";
        }
        $classPath = implode(DIRECTORY_SEPARATOR, explode('\\', $className)) . '.php';
        if(file_exists("{$baseDir}{$classPath}")) {
            require_once "{$baseDir}{$classPath}";
        }
    }
}

spl_autoload_register(__NAMESPACE__ . '\Autoloader::load');
Fix for aws classes, fixed to S3 for now but that is fine
Fix for aws classes, fixed to S3 for now but that is fine
