mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Make autoload to return $loader instance
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<?php
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
if (file_exists(__DIR__ . '/../plugins/autoload.php')) {
|
||||
require __DIR__ . '/../plugins/autoload.php';
|
||||
}
|
||||
return call_user_func(function () {
|
||||
$loader = require __DIR__ . '/../vendor/autoload.php';
|
||||
if (file_exists(__DIR__ . '/../plugins/autoload.php')) {
|
||||
require __DIR__ . '/../plugins/autoload.php';
|
||||
}
|
||||
|
||||
return $loader;
|
||||
});
|
||||
|
Reference in New Issue
Block a user