Move lib/repair to lib/private/repair
This commit is contained in:
parent
470bf234c5
commit
604897945b
|
@ -112,9 +112,6 @@ class Autoloader {
|
||||||
$paths[] = \OC::$SERVERROOT . '/core/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
$paths[] = \OC::$SERVERROOT . '/core/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
||||||
} else if ($split[1] === 'settings') {
|
} else if ($split[1] === 'settings') {
|
||||||
$paths[] = \OC::$SERVERROOT . '/settings/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
$paths[] = \OC::$SERVERROOT . '/settings/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
||||||
} else if ($split[1] === 'repair') {
|
|
||||||
$paths[] = \OC::$SERVERROOT . '/lib/repair/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$paths[] = \OC::$SERVERROOT . '/lib/private/' . $split[1] . '/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
$paths[] = \OC::$SERVERROOT . '/lib/private/' . $split[1] . '/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ class AutoLoader extends TestCase {
|
||||||
|
|
||||||
public function testLoadCoreNamespaceRepair() {
|
public function testLoadCoreNamespaceRepair() {
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
\OC::$SERVERROOT . '/lib/repair/foo/bar.php',
|
\OC::$SERVERROOT . '/lib/private/repair/foo/bar.php',
|
||||||
], $this->loader->findClass('OC\Repair\Foo\Bar'));
|
], $this->loader->findClass('OC\Repair\Foo\Bar'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue