ctautomailhooks/lib/AppInfo/Application.php
Alexander Vassilevski 9044313269 Initial commit
2021-01-23 22:10:44 -08:00

18 lines
571 B
PHP

<?php
namespace OCA\CTAutoMailHooks\AppInfo;
use \OCP\AppFramework\App;
use \OCA\CTAutoMailHooks\Hooks\UserHooks;
class Application extends App {
public function __construct(array $urlParams = array()) {
parent::__construct('auto_mail_accounts', $urlParams);
$container = $this->getContainer();
$container->registerService('UserHooks', function($c) {
return new UserHooks(
$c->query('ServerContainer')->getLogger(),
$c->query('OCA\CTAutoMailHooks\Config'),
$c->query('ServerContainer')->getUserManager()
);
});
}
}