aboutsummaryrefslogtreecommitdiffstats
path: root/includes/context
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@debian.org>2021-08-04 23:54:11 -0700
committerKunal Mehta <legoktm@debian.org>2021-08-05 15:48:26 -0700
commita85f569dd1c5efca1d0c64f824b27f9071aa93c6 (patch)
tree1894dab29db0518fd4c7ea9404dc2bbab9154f99 /includes/context
parentb01945fb4e6fb9a1730982660b37e45b520edaf7 (diff)
downloadmediawikicore-a85f569dd1c5efca1d0c64f824b27f9071aa93c6.tar.gz
mediawikicore-a85f569dd1c5efca1d0c64f824b27f9071aa93c6.zip
Revert "Use CsrfTokenSet as CSRF token source"
This reverts commit 0d75fdb4f73ddbf4ad5f29e14258d58e507d55b4. Bug: T287542 Change-Id: Iedd3461869f973f8d621a39e6ad4674cbb577551
Diffstat (limited to 'includes/context')
-rw-r--r--includes/context/DerivativeContext.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/context/DerivativeContext.php b/includes/context/DerivativeContext.php
index f96e15151bc3..3a90335190a3 100644
--- a/includes/context/DerivativeContext.php
+++ b/includes/context/DerivativeContext.php
@@ -20,7 +20,6 @@
*/
use MediaWiki\MediaWikiServices;
use MediaWiki\Permissions\Authority;
-use MediaWiki\Session\CsrfTokenSet;
/**
* An IContextSource implementation which will inherit context from another source
@@ -288,14 +287,4 @@ class DerivativeContext extends ContextSource implements MutableContext {
// phpcs:ignore MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage
return wfMessage( $key, ...$params )->setContext( $this );
}
-
- /**
- * Get a repository to obtain and match CSRF tokens.
- *
- * @return CsrfTokenSet
- * @since 1.37
- */
- public function getCsrfTokenSet(): CsrfTokenSet {
- return new CsrfTokenSet( $this->getRequest() );
- }
}