mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
Forget one import
This commit is contained in:
parent
729b48a846
commit
06f8f37237
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user