summaryrefslogtreecommitdiff
path: root/includes/context/IContextSource.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/context/IContextSource.php')
-rw-r--r--includes/context/IContextSource.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/includes/context/IContextSource.php b/includes/context/IContextSource.php
index 476035b5..c7b221b9 100644
--- a/includes/context/IContextSource.php
+++ b/includes/context/IContextSource.php
@@ -27,7 +27,6 @@
* Interface for objects which can provide a context on request.
*/
interface IContextSource {
-
/**
* Get the WebRequest object
*
@@ -66,7 +65,7 @@ interface IContextSource {
/**
* Get the OutputPage object
*
- * @return OutputPage object
+ * @return OutputPage
*/
public function getOutput();
@@ -103,8 +102,16 @@ interface IContextSource {
/**
* Get a Message object with context set
*
- * @return Message object
+ * @return Message
*/
public function msg();
-}
+ /**
+ * Export the resolved user IP, HTTP headers, user ID, and session ID.
+ * The result will be reasonably sized to allow for serialization.
+ *
+ * @return Array
+ * @since 1.21
+ */
+ public function exportSession();
+}