nextcloud/lib/private/Comments/ManagerFactory.php
Côme Chilliet 9680004b58
chore: Remove almost all uses of deprecated IServerContainer in lib/private
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-05-11 16:22:22 +02:00

26 lines
616 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OC\Comments;
use OCP\Comments\ICommentsManager;
use OCP\Comments\ICommentsManagerFactory;
use Psr\Container\ContainerInterface;
class ManagerFactory implements ICommentsManagerFactory {
public function __construct(
private ContainerInterface $serverContainer,
) {
}
#[\Override]
public function getManager(): ICommentsManager {
return $this->serverContainer->get(Manager::class);
}
}