Make autoload to return $loader instance

This commit is contained in:
Benoît Burnichon
2015-04-08 11:41:56 +02:00
parent 801eb39447
commit 42bcd1e7c5

View File

@@ -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;
});