diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-22 18:02:10 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-24 15:35:29 +0300 |
commit | 543cfe524258c0c0e8525f9957590a1d7862c42f (patch) | |
tree | 6fd217302d52d3742b77683f5e255a1f249c61d7 /appinfo | |
parent | fb29fe72a33e56ed6e7d3d85b75bfd01108a0c8c (diff) |
Move Application also to lib
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/Application.php | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/appinfo/Application.php b/appinfo/Application.php deleted file mode 100644 index 0a4c0a98..00000000 --- a/appinfo/Application.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -namespace OCA\Richdocuments\AppInfo; - -use OC\AppFramework\Utility\TimeFactory; -use OCA\Richdocuments\WOPI\DiscoveryManager; -use OCP\AppFramework\App; -use OCP\AppFramework\IAppContainer; - -class Application extends App { - public function __construct (array $urlParams = array()) { - parent::__construct('richdocuments', $urlParams); - $container = $this->getContainer(); - $container->registerService( - DiscoveryManager::class, - function(IAppContainer $container) { - return new DiscoveryManager( - $container->getServer()->getHTTPClientService(), - $container->getServer()->getAppDataDir('richdocuments'), - $container->getServer()->getConfig(), - $container->getServer()->getL10N('richdocuments'), - new TimeFactory() - ); - } - ); - } -}
\ No newline at end of file |