summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index fb58177a432..badbe3cd1f8 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -103,6 +103,9 @@ class OC {
*/
public static $loader = null;
+ /** @var \Composer\Autoload\ClassLoader $composerAutoloader */
+ public static $composerAutoloader = null;
+
/**
* @var \OC\Server
*/
@@ -493,7 +496,7 @@ class OC {
self::$CLI = (php_sapi_name() == 'cli');
// Add default composer PSR-4 autoloader
- require_once OC::$SERVERROOT . '/lib/composer/autoload.php';
+ self::$composerAutoloader = require_once OC::$SERVERROOT . '/lib/composer/autoload.php';
try {
self::initPaths();