* @ingroup Actions
*/
+use MediaWiki\MediaWikiServices;
+
/**
* An action that just passes the request to the relevant special page
*
'editchangetags' => 'EditTags',
];
+ /**
+ * @inheritDoc
+ */
public function getName() {
$request = $this->getRequest();
$actionName = $request->getVal( 'action', 'view' );
}
// map actions to (whitelisted) special pages
- return SpecialPageFactory::getPage( self::$actionToSpecialPageMapping[$action] );
+ return MediaWikiServices::getInstance()->getSpecialPageFactory()->
+ getPage( self::$actionToSpecialPageMapping[$action] );
}
}