You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/lib/private/Comments/ManagerFactory.php

26 lines
616 B

<?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);
}
}