summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index 195d56f3539..d1c5294dae9 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -127,13 +127,6 @@ class Application extends App {
);
});
- $container->registerService('OCSShareAPIMiddleware', function (SimpleContainer $c) use ($server) {
- return new OCSShareAPIMiddleware(
- $server->getShareManager(),
- $server->getL10N($c->query('AppName'))
- );
- });
-
$container->registerService(ShareInfoMiddleware::class, function () use ($server) {
return new ShareInfoMiddleware(
$server->getShareManager()
@@ -142,7 +135,7 @@ class Application extends App {
// Execute middlewares
$container->registerMiddleWare('SharingCheckMiddleware');
- $container->registerMiddleWare('OCSShareAPIMiddleware');
+ $container->registerMiddleWare(OCSShareAPIMiddleware::class);
$container->registerMiddleWare(ShareInfoMiddleware::class);
$container->registerService('MountProvider', function (IContainer $c) {