X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontext%2FContextSource.php;h=33f51cb972f01bb636f5fa9eeb3689ccb9e4170b;hb=6907efd670369db6881851262cac931ceca8065d;hp=4a02f0b0cc55c5fe242195969b0d62242a933446;hpb=78f603d87c65fd5c3a063b5025d6c94d4b2f77f0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/context/ContextSource.php b/includes/context/ContextSource.php index 4a02f0b0cc..33f51cb972 100644 --- a/includes/context/ContextSource.php +++ b/includes/context/ContextSource.php @@ -164,4 +164,15 @@ abstract class ContextSource implements IContextSource { $args = func_get_args(); return call_user_func_array( array( $this->getContext(), 'msg' ), $args ); } + + /** + * 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() { + return $this->getContext()->exportSession(); + } }