autoload
[m6w6/atick] / lib / autoload.php
diff --git a/lib/autoload.php b/lib/autoload.php
new file mode 100644 (file)
index 0000000..069564f
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+
+spl_autoload_register(function($c) {
+       if (substr($c, 0, 6) === "atick\\") {
+               return include_once __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
+       }
+});