diff options
Diffstat (limited to 'lib/private/comments/managerfactory.php')
-rw-r--r-- | lib/private/comments/managerfactory.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/private/comments/managerfactory.php b/lib/private/comments/managerfactory.php new file mode 100644 index 00000000000..71d73571b10 --- /dev/null +++ b/lib/private/comments/managerfactory.php @@ -0,0 +1,24 @@ +<?php + +namespace OC\Comments; + +use OCP\Comments\ICommentsManager; +use OCP\Comments\ICommentsManagerFactory; + + +class ManagerFactory implements ICommentsManagerFactory { + + /** + * creates and returns an instance of the ICommentsManager + * + * @return ICommentsManager + * @since 9.0.0 + */ + public function getManager() { + return new Manager( + \oc::$server->getDatabaseConnection(), + \oc::$server->getUserManager(), + \oc::$server->getLogger() + ); + } +} |