aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-05-12 09:49:15 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-12 09:49:15 +0200
commitb57f3126eb445e5dfdc8154412a2fb40444c4641 (patch)
tree7c7a84eeebd69b7cfbbb67907088499018ff8025 /apps/files_versions/appinfo
parentd5dee805806c1af5774040e3a1f40e7d1914758e (diff)
downloadnextcloud-server-b57f3126eb445e5dfdc8154412a2fb40444c4641.tar.gz
nextcloud-server-b57f3126eb445e5dfdc8154412a2fb40444c4641.zip
Move files_versions to PSR-4 (#24571)
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/application.php49
-rw-r--r--apps/files_versions/appinfo/info.xml1
2 files changed, 1 insertions, 49 deletions
diff --git a/apps/files_versions/appinfo/application.php b/apps/files_versions/appinfo/application.php
deleted file mode 100644
index b32cf54729d..00000000000
--- a/apps/files_versions/appinfo/application.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-/**
- * @author Roeland Jago Douma <rullzer@owncloud.com>
- * @author Victor Dubiniuk <dubiniuk@owncloud.com>
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * 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, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-namespace OCA\Files_Versions\AppInfo;
-
-use OCP\AppFramework\App;
-use OCA\Files_Versions\Expiration;
-
-class Application extends App {
- public function __construct(array $urlParams = array()) {
- parent::__construct('files_versions', $urlParams);
-
- $container = $this->getContainer();
-
- /*
- * Register capabilities
- */
- $container->registerCapability('OCA\Files_Versions\Capabilities');
-
- /*
- * Register expiration
- */
- $container->registerService('Expiration', function($c) {
- return new Expiration(
- $c->query('ServerContainer')->getConfig(),
- $c->query('OCP\AppFramework\Utility\ITimeFactory')
- );
- });
- }
-}
diff --git a/apps/files_versions/appinfo/info.xml b/apps/files_versions/appinfo/info.xml
index ad0354a5101..c70e58a12b2 100644
--- a/apps/files_versions/appinfo/info.xml
+++ b/apps/files_versions/appinfo/info.xml
@@ -13,6 +13,7 @@ In addition to the expiry of versions, ownCloud’s versions app makes certain n
<types>
<filesystem/>
</types>
+ <namespace>Files_Versions</namespace>
<dependencies>
<owncloud min-version="9.1" max-version="9.1" />
</dependencies>