summaryrefslogtreecommitdiff
path: root/include/autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/autoload.php')
-rw-r--r--include/autoload.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/autoload.php b/include/autoload.php
deleted file mode 100644
index de80241..0000000
--- a/include/autoload.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
- spl_autoload_register(function($class) {
-
- $root_dir = dirname(__DIR__); // we were in include/
-
- // - internal classes are loaded from classes/ and use special naming logic instead of namespaces
-
- $class_file = "$root_dir/classes/" . str_replace("_", "/", strtolower($class)) . ".php";
-
- if (file_exists($class_file))
- include $class_file;
-
- });
-
- // also pull composer autoloader
- require_once "vendor/autoload.php";