From e1d7328bb2962b3789f6a7fa5c0977d7551fefcf Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 31 Jan 2024 16:53:47 -0100 Subject: adding test Signed-off-by: Maxence Lange --- lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 ++-- lib/private/AppFramework/Services/AppConfig.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 75eb7890ee2..93365582864 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -345,8 +345,8 @@ class DIContainer extends SimpleContainer implements IAppContainer { $this->registerService(IAppConfig::class, function (ContainerInterface $c) { return new OC\AppFramework\Services\AppConfig( $c->get(IConfig::class), - $c->get('AppName'), - $c->get(\OCP\IAppConfig::class) + $c->get(\OCP\IAppConfig::class), + $c->get('AppName') ); }); $this->registerService(IInitialState::class, function (ContainerInterface $c) { diff --git a/lib/private/AppFramework/Services/AppConfig.php b/lib/private/AppFramework/Services/AppConfig.php index a90e38f065f..1d18baef9ed 100644 --- a/lib/private/AppFramework/Services/AppConfig.php +++ b/lib/private/AppFramework/Services/AppConfig.php @@ -36,9 +36,9 @@ use OCP\IConfig; class AppConfig implements IAppConfig { public function __construct( private IConfig $config, - private string $appName, /** @var \OC\AppConfig */ private \OCP\IAppConfig $appConfig, + private string $appName, ) { } -- cgit v1.2.3