From 8600e51df5fb4f937eefc7fae3dfc33e84654ff2 Mon Sep 17 00:00:00 2001 From: Joas Schilling <coding@schilljs.com> Date: Thu, 22 Oct 2020 10:54:03 +0200 Subject: Fix manager creation and testing Signed-off-by: Joas Schilling <coding@schilljs.com> --- lib/private/Comments/ManagerFactory.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/private/Comments/ManagerFactory.php') diff --git a/lib/private/Comments/ManagerFactory.php b/lib/private/Comments/ManagerFactory.php index 44edf32cf9c..a5ac2d65545 100644 --- a/lib/private/Comments/ManagerFactory.php +++ b/lib/private/Comments/ManagerFactory.php @@ -56,11 +56,6 @@ class ManagerFactory implements ICommentsManagerFactory { * @since 9.0.0 */ public function getManager() { - return new Manager( - $this->serverContainer->getDatabaseConnection(), - $this->serverContainer->get(LoggerInterface::class), - $this->serverContainer->getConfig(), - $this->serverContainer->get(IInitialStateService::class) - ); + return $this->serverContainer->get(Manager::class); } } -- cgit v1.2.3