1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00
OwncloudContactsOfficial/lib/controller.php

47 lines
841 B
PHP
Raw Normal View History

2013-09-17 18:46:59 +02:00
<?php
/**
* @author Thomas Tanghus
2014-01-26 00:40:22 +01:00
* @author Thomas Tanghus
* @copyright 2013-2014 Thomas Tanghus (thomas@tanghus.net)
*
2013-09-17 18:46:59 +02:00
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OCA\Contacts;
2013-09-24 13:39:45 +02:00
use OCP\AppFramework\IAppContainer,
OCP\AppFramework\Controller as BaseController,
2013-09-17 18:46:59 +02:00
OCP\IRequest,
OCA\Contacts\App;
/**
* Base Controller class for Contacts App
*/
class Controller extends BaseController {
/**
* @var Api
*/
protected $api;
/**
* @var IRequest
*/
protected $request;
/**
* @var App
*/
protected $app;
2013-09-24 13:39:45 +02:00
public function __construct(IAppContainer $container, App $app) {
$this->api = $container->query('API');
$this->request = $container->query('Request');
$this->server = $container->getServer();
2013-09-17 18:46:59 +02:00
$this->app = $app;
}
}