mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Rename smsMgr to smsMapper to follow OC guidelines. Also implement saveAll alpha function
This commit is contained in:
@@ -16,6 +16,9 @@ use \OCP\AppFramework\App;
|
||||
|
||||
use \OCA\OcSms\Controller\SmsController;
|
||||
|
||||
use \OCA\MyApp\Db\Sms;
|
||||
use \OCA\MyApp\Db\SmsMapper;
|
||||
|
||||
|
||||
class Application extends App {
|
||||
|
||||
@@ -36,6 +39,16 @@ class Application extends App {
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* Database Layer
|
||||
*/
|
||||
$container->registerService('Sms', function($c) {
|
||||
return new Sms($c->query('ServerContainer')->getDb());
|
||||
});
|
||||
|
||||
$container->registerService('SmsMapper', function($c) {
|
||||
return new SmsMapper($c->query('ServerContainer')->getDb());
|
||||
});
|
||||
|
||||
/**
|
||||
* Core
|
||||
|
||||
Reference in New Issue
Block a user