diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2023-09-18 15:26:53 +0100 |
---|---|---|
committer | DannyS712 <dannys712.wiki@gmail.com> | 2023-09-19 05:17:18 +0000 |
commit | b16be7a36cde81b6f15f919c9d7d3e62117e2edd (patch) | |
tree | 2c464836c306b71481a7569c89c238c4f2b74185 /includes/title/TitleFormatter.php | |
parent | a8a6cfd9666be400369121f11a6e71dcb5323877 (diff) | |
download | mediawikicore-b16be7a36cde81b6f15f919c9d7d3e62117e2edd.tar.gz mediawikicore-b16be7a36cde81b6f15f919c9d7d3e62117e2edd.zip |
Namespace TitleFormatter under \MediaWiki\Title
One of the big ones, so doing this alone.
Bug: T166010
Change-Id: Ic2d59eb6764b1a273ed7162ecabf641f638b8f66
Diffstat (limited to 'includes/title/TitleFormatter.php')
-rw-r--r-- | includes/title/TitleFormatter.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/title/TitleFormatter.php b/includes/title/TitleFormatter.php index 50b7115f2bec..de091d6b6272 100644 --- a/includes/title/TitleFormatter.php +++ b/includes/title/TitleFormatter.php @@ -20,6 +20,10 @@ * @file * @author Daniel Kinzler */ + +namespace MediaWiki\Title; + +use InvalidArgumentException; use MediaWiki\Linker\LinkTarget; use MediaWiki\Page\PageReference; @@ -101,3 +105,9 @@ interface TitleFormatter { */ public function getNamespaceName( $namespace, $text ); } + +/** + * Retain the old class name for backwards compatibility. + * @deprecated since 1.41 + */ +class_alias( TitleFormatter::class, 'TitleFormatter' ); |