diff options
Diffstat (limited to 'autoload.php')
| -rw-r--r-- | autoload.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/autoload.php b/autoload.php deleted file mode 100644 index b9d471b..0000000 --- a/autoload.php +++ /dev/null @@ -1,19 +0,0 @@ -<?php - -declare(strict_types=1); - -// Borrowed and modified from PSR-4 Closure Example -spl_autoload_register( - function ($class) { - $prefix = 'AugustOffensive\\'; - $relative_class = substr($class, strlen($prefix)); - - // find file in /private/ in respective namespace path - $file = __DIR__ . '/private/' . str_replace('\\', '/', $relative_class) . '.php'; - - // if the file exists, require it - if (file_exists($file)) { - require $file; - } - } -); |
