Merge pull request #53516 from nextcloud/fix/fix-encryption-manager-injection

fix(encryption): Fix DI for encryption Manager class
This commit is contained in:
Ferdinand Thiessen 2025-06-17 11:45:15 +02:00 committed by GitHub
commit e11ecaa53f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -322,7 +322,7 @@ class Server extends ServerContainer implements IServerContainer {
return new Profiler($c->get(SystemConfig::class));
});
$this->registerService(\OCP\Encryption\IManager::class, function (Server $c): Encryption\Manager {
$this->registerService(Encryption\Manager::class, function (Server $c): Encryption\Manager {
$view = new View();
$util = new Encryption\Util(
$view,
@ -339,6 +339,7 @@ class Server extends ServerContainer implements IServerContainer {
new ArrayCache()
);
});
$this->registerAlias(\OCP\Encryption\IManager::class, Encryption\Manager::class);
$this->registerService(IFile::class, function (ContainerInterface $c) {
$util = new Encryption\Util(