diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2025-03-19 15:43:54 -0400 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2025-03-25 08:54:12 -0400 |
commit | 361a7dec6e4c49027888ce16ebaf40b5cfc75b29 (patch) | |
tree | a44d8d10ae268f0908feee467c22c9bf6c1a5936 /includes/api/ApiMain.php | |
parent | 3b74a1c5df40e1c24f7abea4eb0b221c69af32da (diff) | |
download | mediawikicore-361a7dec6e4c49027888ce16ebaf40b5cfc75b29.tar.gz mediawikicore-361a7dec6e4c49027888ce16ebaf40b5cfc75b29.zip |
Namespace all remaining files in includes/exception
In MediaWiki/Exception, to follow PSR-4 per plural vs. singular (this can be
changed later if people really care). Also, move the couple of exceptions in
here that were already namespaced in the MW-top-level into the new space.
Bug: T353458
Change-Id: I12ed850ae99effb699a6d7ada173f54e72f0570e
Diffstat (limited to 'includes/api/ApiMain.php')
-rw-r--r-- | includes/api/ApiMain.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 956c901b3dfa..a3eb344ff60c 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -23,7 +23,6 @@ namespace MediaWiki\Api; -use ILocalizedException; use LogicException; use MediaWiki; use MediaWiki\Api\Validator\ApiParamValidator; @@ -31,6 +30,9 @@ use MediaWiki\Context\DerivativeContext; use MediaWiki\Context\IContextSource; use MediaWiki\Context\RequestContext; use MediaWiki\Debug\MWDebug; +use MediaWiki\Exception\ILocalizedException; +use MediaWiki\Exception\MWExceptionHandler; +use MediaWiki\Exception\MWExceptionRenderer; use MediaWiki\Html\Html; use MediaWiki\Logger\LoggerFactory; use MediaWiki\MainConfigNames; @@ -47,8 +49,6 @@ use MediaWiki\StubObject\StubGlobalUser; use MediaWiki\User\UserRigorOptions; use MediaWiki\Utils\MWTimestamp; use MediaWiki\WikiMap\WikiMap; -use MWExceptionHandler; -use MWExceptionRenderer; use Profiler; use Throwable; use UnexpectedValueException; |