mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 15:30:01 +02:00
refactor: add php autoloader (#2655)
This commit is contained in:
parent
b090b17bbf
commit
0ef298f9cc
9 changed files with 16 additions and 12 deletions
|
@ -68,8 +68,6 @@ class BridgeFactory extends FactoryAbstract {
|
|||
throw new \Exception('Bridge file ' . $filePath . ' does not exist!');
|
||||
}
|
||||
|
||||
require_once $filePath;
|
||||
|
||||
if((new \ReflectionClass($name))->isInstantiable()) {
|
||||
return new $name();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue