fix: Add back ContainerInterface service to DIContainer

Otherwise it gets resolved to \OC::$server.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-06-19 16:37:32 +02:00
parent 2240acec7f
commit 3dd4ba854f
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -116,6 +116,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
$this->registerAlias(\OCP\WorkflowEngine\IManager::class, Manager::class);
$this->registerService(ContainerInterface::class, fn (ContainerInterface $c) => $c);
$this->registerDeprecatedAlias(IAppContainer::class, ContainerInterface::class);
// commonly used attributes