aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-01-31 16:53:47 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-01-31 21:13:32 -0100
commite1d7328bb2962b3789f6a7fa5c0977d7551fefcf (patch)
tree268e08319feea732fe9bfade49bb7bfd8d36dff8 /lib
parent51fa22dc26a9200c80202e92d49873a0c8ead455 (diff)
downloadnextcloud-server-e1d7328bb2962b3789f6a7fa5c0977d7551fefcf.tar.gz
nextcloud-server-e1d7328bb2962b3789f6a7fa5c0977d7551fefcf.zip
adding test
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php4
-rw-r--r--lib/private/AppFramework/Services/AppConfig.php2
2 files changed, 3 insertions, 3 deletions
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,
) {
}