<?php

if (!defined('DIRECTORY_SEPERATOR')) {
    define('DIRECTORY_SEPERATOR', '/');
}

spl_autoload_register(function ($class) {
    $path = DIRECTORY_SEPERATOR . str_replace('\\', DIRECTORY_SEPERATOR, $class);
    $path = __DIR__ . $path . '.php';
    if (file_exists($path)) {
        require $path;
    }
});

<?php

spl_autoload_register(function ($class) {
    $path = '/' . str_replace('\\', '/', $class);
    $path = __DIR__ . $path . '.php';
    var_dump($path);
    if (file_exists($path)) {
        require $path;
    }
});
Revert "Now uses DIRECTORY_SEPERATOR. Removed var_dump."
Revert "Now uses DIRECTORY_SEPERATOR. Removed var_dump."

This reverts commit 7d9602ea2f6fe1eca0735ac6f754a1d44cc9842d.
