Merge "Remove deprecated interface ParserTestTablesHook"
This commit is contained in:
commit
e8340a75c7
5 changed files with 2 additions and 34 deletions
|
|
@ -258,6 +258,8 @@ because of Phabricator reports.
|
|||
has been removed.
|
||||
* MediaWikiServices::getWatchlistNotificationManager(), deprecated in 1.36,
|
||||
has been removed.
|
||||
* Interface MediaWiki\Hook\ParserTestTablesHook, deprecated in 1.36,
|
||||
has been removed.
|
||||
* The NewPagesLineEndingHook now takes NewPagesPager instead of
|
||||
SpecialNewpages as first argument.
|
||||
* The following methods in the Title class, deprecated since 1.37, have been
|
||||
|
|
|
|||
|
|
@ -1333,7 +1333,6 @@ $wgAutoloadLocalClasses = [
|
|||
'MediaWiki\\Hook\\ParserOutputPostCacheTransformHook' => __DIR__ . '/includes/parser/Hook/ParserOutputPostCacheTransformHook.php',
|
||||
'MediaWiki\\Hook\\ParserPreSaveTransformCompleteHook' => __DIR__ . '/includes/parser/Hook/ParserPreSaveTransformCompleteHook.php',
|
||||
'MediaWiki\\Hook\\ParserTestGlobalsHook' => __DIR__ . '/includes/Hook/ParserTestGlobalsHook.php',
|
||||
'MediaWiki\\Hook\\ParserTestTablesHook' => __DIR__ . '/includes/Hook/ParserTestTablesHook.php',
|
||||
'MediaWiki\\Hook\\PasswordPoliciesForUserHook' => __DIR__ . '/includes/password/Hook/PasswordPoliciesForUserHook.php',
|
||||
'MediaWiki\\Hook\\PostLoginRedirectHook' => __DIR__ . '/includes/specials/Hook/PostLoginRedirectHook.php',
|
||||
'MediaWiki\\Hook\\PreferencesGetIconHook' => __DIR__ . '/includes/Hook/PreferencesGetIconHook.php',
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace MediaWiki\Hook;
|
||||
|
||||
/**
|
||||
* This is a hook handler interface, see docs/Hooks.md.
|
||||
* Use the hook name "ParserTestTables" to register handlers implementing this interface.
|
||||
*
|
||||
* @ingroup Hooks
|
||||
* @deprecated No longer invoked by MW 1.36+
|
||||
*/
|
||||
interface ParserTestTablesHook {
|
||||
/**
|
||||
* Use this hook to alter the list of tables to duplicate when parser tests are
|
||||
* run. Use when page save hooks require the presence of custom tables to ensure
|
||||
* that tests continue to run properly.
|
||||
*
|
||||
* @since 1.35
|
||||
*
|
||||
* @param string[] &$tables Array of table names
|
||||
* @return bool|void True or no return value to continue or false to abort
|
||||
*/
|
||||
public function onParserTestTables( &$tables );
|
||||
}
|
||||
|
|
@ -39,7 +39,6 @@ class DeprecatedHooks {
|
|||
'LocalFile::getHistory' => [ 'deprecatedVersion' => '1.37' ],
|
||||
'MagicWordwgVariableIDs' => [ 'deprecatedVersion' => '1.35', 'silent' => true ],
|
||||
'PageContentSave' => [ 'deprecatedVersion' => '1.35', 'silent' => true ],
|
||||
'ParserTestTables' => [ 'deprecatedVersion' => '1.36', 'silent' => true ],
|
||||
'PrefixSearchBackend' => [ 'deprecatedVersion' => '1.27' ],
|
||||
'ProtectionForm::buildForm' => [ 'deprecatedVersion' => '1.36', 'silent' => true ],
|
||||
'RollbackComplete' => [ 'deprecatedVersion' => '1.36', 'silent' => true ],
|
||||
|
|
|
|||
|
|
@ -302,7 +302,6 @@ class HookRunner implements
|
|||
\MediaWiki\Hook\ParserOutputPostCacheTransformHook,
|
||||
\MediaWiki\Hook\ParserPreSaveTransformCompleteHook,
|
||||
\MediaWiki\Hook\ParserTestGlobalsHook,
|
||||
\MediaWiki\Hook\ParserTestTablesHook,
|
||||
\MediaWiki\Hook\PasswordPoliciesForUserHook,
|
||||
\MediaWiki\Hook\PostLoginRedirectHook,
|
||||
\MediaWiki\Hook\PreferencesGetIconHook,
|
||||
|
|
@ -3052,13 +3051,6 @@ class HookRunner implements
|
|||
);
|
||||
}
|
||||
|
||||
public function onParserTestTables( &$tables ) {
|
||||
return $this->container->run(
|
||||
'ParserTestTables',
|
||||
[ &$tables ]
|
||||
);
|
||||
}
|
||||
|
||||
public function onPasswordPoliciesForUser( $user, &$effectivePolicy ) {
|
||||
return $this->container->run(
|
||||
'PasswordPoliciesForUser',
|
||||
|
|
|
|||
Loading…
Reference in a new issue