projects
/
m6w6
/
atick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
69e4799
)
autoload
author
Michael Wallner
<mike@php.net>
Fri, 15 Mar 2013 14:21:37 +0000
(15:21 +0100)
committer
Michael Wallner
<mike@php.net>
Sun, 24 Nov 2013 10:07:53 +0000
(11:07 +0100)
lib/autoload.php
[new file with mode: 0644]
patch
|
blob
diff --git a/lib/autoload.php
b/lib/autoload.php
new file mode 100644
(file)
index 0000000..
069564f
--- /dev/null
+++ b/
lib/autoload.php
@@ -0,0
+1,7
@@
+<?php
+
+spl_autoload_register(function($c) {
+ if (substr($c, 0, 6) === "atick\\") {
+ return include_once __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
+ }
+});