1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Forget one import

This commit is contained in:
Loic Blot
2016-05-19 18:30:07 +02:00
parent 729b48a846
commit 06f8f37237
+2 -3
View File
@@ -14,6 +14,7 @@ namespace OCA\OcSms\AppInfo;
use \OCP\AppFramework\App;
use \OCP\IContainer;
use \OCA\OcSms\Controller\ApiController;
use \OCA\OcSms\Controller\SettingsController;
@@ -24,8 +25,6 @@ use \OCA\OcSms\Db\SmsMapper;
use \OCA\OcSms\Db\ConfigMapper;
use \OCA\OcSms\Lib\PhoneNumberFormatter;
class OcSmsApp extends App {
private $c;
@@ -60,7 +59,7 @@ class OcSmsApp extends App {
* Managers
*/
$container->registerService('ContactsManager', function(IContainer $c) {
return $c->getServer()->getContactsManager();
return $server = $c->query('ServerContainer')->getContactsManager();
});
/**