mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-23 06:13:09 +00:00
Move settings from smscontroller to dedicated controller
This commit is contained in:
@@ -16,6 +16,7 @@ namespace OCA\OcSms\AppInfo;
|
||||
use \OCP\AppFramework\App;
|
||||
|
||||
use \OCA\OcSms\Controller\ApiController;
|
||||
use \OCA\OcSms\Controller\SettingsController;
|
||||
use \OCA\OcSms\Controller\SmsController;
|
||||
|
||||
use \OCA\OcSms\Db\Sms;
|
||||
@@ -72,6 +73,15 @@ class OcSmsApp extends App {
|
||||
/**
|
||||
* Controllers
|
||||
*/
|
||||
$container->registerService('SettingsController', function($c) use($app) {
|
||||
return new SettingsController(
|
||||
$c->query('AppName'),
|
||||
$c->query('Request'),
|
||||
$c->query('ConfigMapper'),
|
||||
$app
|
||||
);
|
||||
});
|
||||
|
||||
$container->registerService('SmsController', function($c) use($app) {
|
||||
return new SmsController(
|
||||
$c->query('AppName'),
|
||||
|
||||
Reference in New Issue
Block a user