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

Create a basic SmsController

This commit is contained in:
Loïc Blot (@U-Exp)
2014-09-12 13:59:19 +02:00
parent 8d03780e6f
commit 3ad96daa21
4 changed files with 42 additions and 65 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
/**
* ownCloud - ocsms
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Loic Blot <loic.blot@unix-experience.fr>
* @copyright Loic Blot 2014
*/
namespace OCA\OcSms\Controller;
use \OCP\IRequest;
use \OCP\AppFramework\Http\TemplateResponse;
use \OCP\AppFramework\Controller;
class SmsController extends Controller {
private $userId;
public function __construct($appName, IRequest $request, $userId){
parent::__construct($appName, $request);
$this->userId = $userId;
}
public function push() {
return array("test" => "test2");
}
}