summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
committerAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
commit865ecc87963dc3b26e66296616eef2a1cc41ac3f (patch)
treebf2ecd8a391103bdb2c8b70cd33c47467310754b /include
parent0a5507d3bd79d04c860455664f919bf8e7274fda (diff)
move to psr-4 autoloader
Diffstat (limited to 'include')
-rw-r--r--include/autoload.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/autoload.php b/include/autoload.php
index 4422a435c..d019940b7 100644
--- a/include/autoload.php
+++ b/include/autoload.php
@@ -1,17 +1,2 @@
<?php
- spl_autoload_register(function($class) {
-
- $root_dir = dirname(__DIR__); // we were in tt-rss/include
-
- // - internal tt-rss classes are loaded from classes/ and use special naming logic instead of namespaces
- // - plugin classes are loaded by PluginHandler from plugins.local/ and plugins/
-
- $class_file = "$root_dir/classes/" . str_replace("_", "/", strtolower($class)) . ".php";
-
- if (file_exists($class_file))
- include $class_file;
-
- });
-
- // also pull composer autoloader
require_once "vendor/autoload.php";