summaryrefslogtreecommitdiffstats
path: root/library/vendor/Psr/Loader.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/vendor/Psr/Loader.php')
-rw-r--r--library/vendor/Psr/Loader.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/library/vendor/Psr/Loader.php b/library/vendor/Psr/Loader.php
deleted file mode 100644
index 45c78af..0000000
--- a/library/vendor/Psr/Loader.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/* Icinga Web 2 Elasticsearch Module (c) 2017 Icinga Development Team | GPLv2+ */
-
-spl_autoload_register(function ($class) {
- $prefix = 'Psr\\';
- $len = strlen($prefix);
-
- $baseDir = __DIR__ . '/';
-
- if (strncmp($prefix, $class, $len) !== 0) {
- return;
- }
-
- $relative = substr($class, $len);
-
- $file = $baseDir . str_replace('\\', '/', $relative) . '.php';
-
- if (file_exists($file)) {
- require $file;
- }
-});