Skip to content

Commit dd5baf9

Browse files
committed
chore: Remove now-unused legacy OC_App::registerAutoloading
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 8d95c90 commit dd5baf9

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

lib/private/legacy/OC_App.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@ public static function loadApp(string $app): void {
107107
Server::get(IAppManager::class)->loadApp($app);
108108
}
109109

110-
/**
111-
* @internal
112-
*/
113-
public static function registerAutoloading(string $app, string $path, bool $force = false): void {
114-
Server::get(AppManager::class)->registerAutoloading($app, $path, $force);
115-
}
116-
117110
/**
118111
* Check if an app is of a specific type
119112
*

tests/lib/InfoXmlTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Test;
99

10-
use OCP\App\IAppManager;
10+
use OC\App\AppManager;
1111
use OCP\AppFramework\App;
1212
use OCP\OpenMetrics\IMetricFamily;
1313
use OCP\Server;
@@ -19,12 +19,12 @@
1919
*/
2020
#[\PHPUnit\Framework\Attributes\Group('DB')]
2121
class InfoXmlTest extends TestCase {
22-
private IAppManager $appManager;
22+
private AppManager $appManager;
2323

2424
#[\Override]
2525
protected function setUp(): void {
2626
parent::setUp();
27-
$this->appManager = Server::get(IAppManager::class);
27+
$this->appManager = Server::get(AppManager::class);
2828
}
2929

3030
public static function dataApps(): array {
@@ -58,7 +58,7 @@ public static function dataApps(): array {
5858
public function testClasses($app): void {
5959
$appInfo = $this->appManager->getAppInfo($app);
6060
$appPath = $this->appManager->getAppPath($app);
61-
\OC_App::registerAutoloading($app, $appPath);
61+
$this->appManager->registerAutoloading($app, $appPath);
6262

6363
//Add the appcontainer
6464
$applicationClassName = $this->appManager->getAppNamespace($app) . '\\AppInfo\\Application';

0 commit comments

Comments
 (0)