tasks/lib/controller.php

45 lines
806 B
PHP
Raw Normal View History

2014-04-05 23:09:35 +00:00
<?php
/**
* @author Thomas Tanghus
* @author Thomas Tanghus
* @copyright 2013-2014 Thomas Tanghus (thomas@tanghus.net)
*
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
2014-07-30 19:03:54 +00:00
namespace OCA\Tasks;
2014-04-05 23:09:35 +00:00
use OCP\AppFramework\IAppContainer,
OCP\AppFramework\Controller as BaseController,
OCP\IRequest;
/**
* Base Controller class for Issues App
*/
class Controller extends BaseController {
/**
* @var Api
*/
protected $api;
/**
* @var IRequest
*/
protected $request;
/**
* @var OCP\IServerContainer
*/
protected $server;
public function __construct(IAppContainer $container) {
$this->api = $container->query('API');
$this->request = $container->query('Request');
$this->server = $container->getServer();
}
}