Only allow loading of legacy (lib/private/legacy) by default
This commit is contained in:
parent
802be173da
commit
c9ad60defc
|
@ -481,11 +481,7 @@ class OC {
|
||||||
$loaderStart = microtime(true);
|
$loaderStart = microtime(true);
|
||||||
require_once __DIR__ . '/autoloader.php';
|
require_once __DIR__ . '/autoloader.php';
|
||||||
self::$loader = new \OC\Autoloader([
|
self::$loader = new \OC\Autoloader([
|
||||||
OC::$SERVERROOT . '/lib',
|
OC::$SERVERROOT . '/lib/private/legacy',
|
||||||
OC::$SERVERROOT . '/core',
|
|
||||||
OC::$SERVERROOT . '/settings',
|
|
||||||
OC::$SERVERROOT . '/ocs',
|
|
||||||
OC::$SERVERROOT . '/ocs-provider',
|
|
||||||
]);
|
]);
|
||||||
if (defined('PHPUNIT_RUN')) {
|
if (defined('PHPUNIT_RUN')) {
|
||||||
self::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
self::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
||||||
|
|
Loading…
Reference in New Issue