diff options
author | Kunal Mehta <legoktm@debian.org> | 2021-08-04 23:54:11 -0700 |
---|---|---|
committer | Kunal Mehta <legoktm@debian.org> | 2021-08-05 15:48:26 -0700 |
commit | a85f569dd1c5efca1d0c64f824b27f9071aa93c6 (patch) | |
tree | 1894dab29db0518fd4c7ea9404dc2bbab9154f99 /includes/context | |
parent | b01945fb4e6fb9a1730982660b37e45b520edaf7 (diff) | |
download | mediawikicore-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.php | 11 |
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() ); - } } |