summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/appframework')
-rw-r--r--lib/public/appframework/iappcontainer.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/appframework/iappcontainer.php b/lib/public/appframework/iappcontainer.php
index c8f6229dd9e..7d3b4b3bac7 100644
--- a/lib/public/appframework/iappcontainer.php
+++ b/lib/public/appframework/iappcontainer.php
@@ -34,6 +34,12 @@ use OCP\IContainer;
interface IAppContainer extends IContainer{
/**
+ * used to return the appname of the set application
+ * @return string the name of your application
+ */
+ function getAppName();
+
+ /**
* @return IApi
*/
function getCoreApi();
@@ -42,4 +48,10 @@ interface IAppContainer extends IContainer{
* @return \OCP\IServerContainer
*/
function getServer();
+
+ /**
+ * @param IMiddleWare $middleWare
+ * @return boolean
+ */
+ function registerMiddleWare(IMiddleWare $middleWare);
}