autoload
authorMichael Wallner <mike@php.net>
Fri, 15 Mar 2013 14:21:37 +0000 (15:21 +0100)
committerMichael Wallner <mike@php.net>
Sun, 24 Nov 2013 10:07:53 +0000 (11:07 +0100)
lib/autoload.php [new file with mode: 0644]

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";
+       }
+});