aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-01-26 15:17:38 +0100
committerGitHub <noreply@github.com>2023-01-26 15:17:38 +0100
commitad00a149ea2bb262e62fbecf11051fd035f90ec4 (patch)
treeb76d1c25998766677146293718b6f78e60830db3 /lib/public/AppFramework
parent0a548175c074615457130b166586caf9574664d6 (diff)
parent8d9af3e26214f07e833a6b8d8b60329fc71916a7 (diff)
downloadnextcloud-server-ad00a149ea2bb262e62fbecf11051fd035f90ec4.tar.gz
nextcloud-server-ad00a149ea2bb262e62fbecf11051fd035f90ec4.zip
Merge pull request #36310 from nextcloud/feat/app-framework/global-middlewares
feat(app-framework): Add support for global middlewares
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index 7ff2bdca52e..3748714bb79 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -138,14 +138,16 @@ interface IRegistrationContext {
/**
* @param string $class
+ * @param bool $global load this middleware also for requests of other apps? Added in Nextcloud 26
* @psalm-param class-string<\OCP\AppFramework\Middleware> $class
*
* @return void
* @see IAppContainer::registerMiddleWare()
*
* @since 20.0.0
+ * @since 26.0.0 Added optional argument $global
*/
- public function registerMiddleware(string $class): void;
+ public function registerMiddleware(string $class, bool $global = false): void;
/**
* Register a search provider for the unified search