nextcloud/lib/private/Comments/ManagerFactory.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
616 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
2016-01-12 09:02:16 -05:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2016-01-12 09:02:16 -05:00
*/
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);
}
}