aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/AppInfo
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 23:16:13 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-29 12:03:47 +0100
commiteb51f06a3b9e42686f462b9f7a56411d3fe6cb27 (patch)
tree0d96c86c4489b4e3fe60bcceaeb6759d856a36e9 /apps/files_sharing/lib/AppInfo
parent1d8b90b8d3c8a85104d223b7f1d5693280370774 (diff)
downloadnextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.tar.gz
nextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.zip
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/lib/AppInfo')
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index fe2669640ca..e0c40730b31 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -41,6 +41,8 @@ use OCP\Defaults;
use OCP\Federation\ICloudIdManager;
use \OCP\IContainer;
use OCP\IServerContainer;
+use OCA\Files_Sharing\Capabilities;
+use OCA\Files_Sharing\External\Manager;
class Application extends App {
public function __construct(array $urlParams = array()) {
@@ -104,7 +106,7 @@ class Application extends App {
$uid
);
});
- $container->registerAlias('OCA\Files_Sharing\External\Manager', 'ExternalManager');
+ $container->registerAlias(Manager::class, 'ExternalManager');
/**
* Middleware
@@ -163,7 +165,7 @@ class Application extends App {
/*
* Register capabilities
*/
- $container->registerCapability('OCA\Files_Sharing\Capabilities');
+ $container->registerCapability(Capabilities::class);
}
public function registerMountProviders() {