mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
register CommentsManager service, allow override, document in config.sample.php don't insert autoincrement ids in tests, because of dislikes from oracle and pgsql specify timezone in null date only accepts strings for ID parameter that can be converted to int replace forgotten hardcoded IDs in tests react on deleted users react on file deletion Postgresql compatibility lastInsertId needs *PREFIX* with the table name do not listen for file deletion, because it is not reliable (trashbin, external storages) add runtime cache for comments
24 lines
459 B
PHP
24 lines
459 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->getUserManager(),
|
|
\oc::$server->getLogger()
|
|
);
|
|
}
|
|
}
|