blob: 72c82efe16bc2b350eb5f64e866640a278306c9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
namespace OC;
use OC\AppFramework\Utility\SimpleContainer;
use OCP\Core\IServerContainer;
/**
* Class Server
* @package OC
*
* TODO: hookup all manager classes
*/
class Server extends SimpleContainer implements IServerContainer {
function __construct() {
$this->registerService('ContactsManager', function($c){
return new ContactsManager();
});
}
/**
* @return \OCP\Core\Contacts\IManager
*/
function getContactsManager() {
return $this->query('ContactsManager');
}
}
|