2015-11-23 17:53:55 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2026-02-09 04:53:58 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2016-01-12 09:02:16 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04: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
|
|
|
*/
|
2015-11-23 17:53:55 -05:00
|
|
|
namespace OC\Comments;
|
|
|
|
|
|
|
|
|
|
use OCP\Comments\ICommentsManager;
|
|
|
|
|
use OCP\Comments\ICommentsManagerFactory;
|
2026-05-11 09:16:05 -04:00
|
|
|
use Psr\Container\ContainerInterface;
|
2015-11-23 17:53:55 -05:00
|
|
|
|
|
|
|
|
class ManagerFactory implements ICommentsManagerFactory {
|
2025-11-17 09:32:54 -05:00
|
|
|
public function __construct(
|
2026-05-11 09:16:05 -04:00
|
|
|
private ContainerInterface $serverContainer,
|
2025-11-17 09:32:54 -05:00
|
|
|
) {
|
2016-01-19 10:17:49 -05:00
|
|
|
}
|
|
|
|
|
|
2026-04-28 13:36:04 -04:00
|
|
|
#[\Override]
|
2026-05-11 09:16:05 -04:00
|
|
|
public function getManager(): ICommentsManager {
|
2020-10-22 04:54:03 -04:00
|
|
|
return $this->serverContainer->get(Manager::class);
|
2015-11-23 17:53:55 -05:00
|
|
|
}
|
|
|
|
|
}
|