Browse Source

Remove OC/Core autoloading from old autoloader

tags/v9.1.0beta1
Lukas Reschke 8 years ago
parent
commit
c952adabb5
No account linked to committer's email address
2 changed files with 2 additions and 4 deletions
  1. 1
    1
      lib/autoloader.php
  2. 1
    3
      tests/lib/autoloader.php

+ 1
- 1
lib/autoloader.php View File

@@ -110,7 +110,7 @@ class Autoloader {
$split[1] = strtolower($split[1]);

if ($split[1] === 'core') {
$paths[] = \OC::$SERVERROOT . '/core/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
// Covered by PSR-4 autoloader
} else if ($split[1] === 'settings') {
$paths[] = \OC::$SERVERROOT . '/settings/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
} else {

+ 1
- 3
tests/lib/autoloader.php View File

@@ -77,9 +77,7 @@ class AutoLoader extends TestCase {
}

public function testLoadCoreNamespaceCore() {
$this->assertEquals([
\OC::$SERVERROOT . '/core/foo/bar.php',
], $this->loader->findClass('OC\Core\Foo\Bar'));
$this->assertEquals([], $this->loader->findClass('OC\Core\Foo\Bar'));
}

public function testLoadCoreNamespaceSettings() {

Loading…
Cancel
Save