server/lib/private/comments/managerfactory.php
Arthur Schiwon 9a440c06b0 OC not oc
2015-12-09 14:34:23 +01:00

23 lines
424 B
PHP

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