summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-10-16 22:53:09 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-10-16 22:53:09 +0200
commit4a2f9fab66b714c45ea430b33c88a65a8402b459 (patch)
tree19bda475f6dd3e4813cc4d47c2ab8fc03c358d9a /apps/files_sharing
parent098ab7af4b86e5aae74f5d2ed18d85e551f03952 (diff)
downloadnextcloud-server-4a2f9fab66b714c45ea430b33c88a65a8402b459.tar.gz
nextcloud-server-4a2f9fab66b714c45ea430b33c88a65a8402b459.zip
Move over OCSShareAPIMIddleware to pure DI
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing')
-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) {