mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-24 06:42:59 +00:00
Forget one import
This commit is contained in:
@@ -14,6 +14,7 @@ namespace OCA\OcSms\AppInfo;
|
|||||||
|
|
||||||
|
|
||||||
use \OCP\AppFramework\App;
|
use \OCP\AppFramework\App;
|
||||||
|
use \OCP\IContainer;
|
||||||
|
|
||||||
use \OCA\OcSms\Controller\ApiController;
|
use \OCA\OcSms\Controller\ApiController;
|
||||||
use \OCA\OcSms\Controller\SettingsController;
|
use \OCA\OcSms\Controller\SettingsController;
|
||||||
@@ -24,8 +25,6 @@ use \OCA\OcSms\Db\SmsMapper;
|
|||||||
|
|
||||||
use \OCA\OcSms\Db\ConfigMapper;
|
use \OCA\OcSms\Db\ConfigMapper;
|
||||||
|
|
||||||
use \OCA\OcSms\Lib\PhoneNumberFormatter;
|
|
||||||
|
|
||||||
class OcSmsApp extends App {
|
class OcSmsApp extends App {
|
||||||
|
|
||||||
private $c;
|
private $c;
|
||||||
@@ -60,7 +59,7 @@ class OcSmsApp extends App {
|
|||||||
* Managers
|
* Managers
|
||||||
*/
|
*/
|
||||||
$container->registerService('ContactsManager', function(IContainer $c) {
|
$container->registerService('ContactsManager', function(IContainer $c) {
|
||||||
return $c->getServer()->getContactsManager();
|
return $server = $c->query('ServerContainer')->getContactsManager();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user