mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Forward compatibility with Composer autoloading
This commit is contained in:
parent
2a69227135
commit
f8d0b628e0
@ -5234,7 +5234,12 @@ class e107
|
||||
|
||||
e107::autoload_register(array(e107::class, 'autoload'));
|
||||
|
||||
|
||||
// Forward compatibility with e107 v3 Composer autoloading
|
||||
$vendor_autoload_file = __DIR__."/vendor/autoload.php";
|
||||
if (file_exists($vendor_autoload_file))
|
||||
{
|
||||
include_once($vendor_autoload_file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface e_admin_addon_interface @move to separate addons file?
|
||||
|
Loading…
x
Reference in New Issue
Block a user