ctautomailhooks/lib/AppInfo/Application.php

18 lines
571 B
PHP
Raw Permalink Normal View History

2021-01-24 06:10:44 +00:00
<?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()
);
});
}
}