diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-15 13:52:32 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-15 13:57:23 +0200 |
commit | 94575cc761c016b68135b398445d554bc984b1d5 (patch) | |
tree | 35f2decbb4cfed12e65f420228e5e1e150f36068 /vendor/riimu/kit-pathjoin/src/autoload.php | |
parent | 44733bc8b4f5f1a6fb26dea01b9d33c7b0321d67 (diff) |
swap out unlicensed lib
Diffstat (limited to 'vendor/riimu/kit-pathjoin/src/autoload.php')
-rw-r--r-- | vendor/riimu/kit-pathjoin/src/autoload.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/riimu/kit-pathjoin/src/autoload.php b/vendor/riimu/kit-pathjoin/src/autoload.php new file mode 100644 index 000000000..bc8572d6d --- /dev/null +++ b/vendor/riimu/kit-pathjoin/src/autoload.php @@ -0,0 +1,12 @@ +<?php + +// Autoloader for loading the library when composer is not available +spl_autoload_register(function ($class) { + if (strncmp($class, $ns = 'Riimu\\Kit\\PathJoin\\', strlen($ns)) === 0) { + $file = substr_replace($class, '\\', 0, strlen($ns)) . '.php'; + $path = __DIR__ . str_replace('\\', DIRECTORY_SEPARATOR, $file); + if (file_exists($path)) { + require $path; + } + } +}); |