2015-11-24 01:53:55 +03:00
|
|
|
<?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(
|
2015-12-03 19:19:40 +03:00
|
|
|
\OC::$server->getDatabaseConnection(),
|
|
|
|
\OC::$server->getLogger()
|
2015-11-24 01:53:55 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|