nextcloud/lib/server.php

29 lines
502 B
PHP
Raw Normal View History

2013-08-21 02:58:15 +04:00
<?php
namespace OC;
use OC\AppFramework\Utility\SimpleContainer;
2013-08-21 02:58:15 +04:00
use OCP\Core\IServerContainer;
/**
* Class Server
* @package OC
*
* TODO: hookup all manager classes
*/
class Server extends SimpleContainer implements IServerContainer {
2013-08-21 02:58:15 +04:00
function __construct() {
$this->registerService('ContactsManager', function($c){
return new ContactsManager();
});
}
/**
* @return \OCP\Core\Contacts\IManager
*/
function getContactsManager() {
return $this->query('ContactsManager');
}
2013-08-21 02:58:15 +04:00
}