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