mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
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:
parent
2240acec7f
commit
3dd4ba854f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue