mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Merge pull request #749 from owncloud/use-di
Use DI for principal backend
This commit is contained in:
commit
1e9a7c161e
@ -38,7 +38,10 @@ OC_App::loadApps($RUNTIME_APPTYPES);
|
||||
|
||||
// Backends
|
||||
$authBackend = new OC_Connector_Sabre_Auth();
|
||||
$principalBackend = new OC_Connector_Sabre_Principal();
|
||||
$principalBackend = new \OC\Connector\Sabre\Principal(
|
||||
\OC::$server->getConfig(),
|
||||
\OC::$server->getUserManager()
|
||||
);
|
||||
|
||||
$addressbookbackends = array();
|
||||
$addressbookbackends[] = new OCA\Contacts\Backend\Database(\OCP\User::getUser());
|
||||
|
Loading…
x
Reference in New Issue
Block a user