summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-25 10:30:48 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-25 10:30:48 +0200
commitb2ef978d1069d5e7e172806a9e2426de2717a1f2 (patch)
tree3f81aaba0e83930b97b1494cd8e3df14f8f1c4c1 /lib/public
parentdb39fede97dc4d6b9a5caf739cb2c03b4dbdd21d (diff)
downloadnextcloud-server-b2ef978d1069d5e7e172806a9e2426de2717a1f2.tar.gz
nextcloud-server-b2ef978d1069d5e7e172806a9e2426de2717a1f2.zip
AppFramework:
- get request from the server container - implement registerMiddleWare() - adding getAppName() to app container
Diffstat (limited to 'lib/public')
-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);
}