mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-27 09:42:39 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I780e57da1ea02eb333cf61abd999dc737acf20d1
This commit is contained in:
parent
f86e0b3152
commit
3703c048cc
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace PageImages\Hooks;
|
||||
|
||||
use IContextSource;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Title\Title;
|
||||
use MobileFrontend\Hooks\SpecialMobileEditWatchlistImagesHook;
|
||||
use PageImages\PageImages;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
namespace PageImages\Hooks;
|
||||
|
||||
use DerivativeContext;
|
||||
use Exception;
|
||||
use File;
|
||||
use FormatMetadata;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Context\DerivativeContext;
|
||||
use MediaWiki\Hook\ParserAfterTidyHook;
|
||||
use MediaWiki\Hook\ParserModifyImageHTMLHook;
|
||||
use MediaWiki\Hook\ParserTestGlobalsHook;
|
||||
|
@ -14,11 +14,11 @@ use MediaWiki\Http\HttpRequestFactory;
|
|||
use MediaWiki\Linker\LinksMigration;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Page\PageReference;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Title\TitleFactory;
|
||||
use PageImages\PageImageCandidate;
|
||||
use PageImages\PageImages;
|
||||
use Parser;
|
||||
use RepoGroup;
|
||||
use RuntimeException;
|
||||
use WANObjectCache;
|
||||
|
|
|
@ -5,15 +5,15 @@ namespace PageImages;
|
|||
use ApiBase;
|
||||
use ApiMain;
|
||||
use File;
|
||||
use IContextSource;
|
||||
use MapCacheLRU;
|
||||
use MediaWiki\Api\Hook\ApiOpenSearchSuggestHook;
|
||||
use MediaWiki\Cache\CacheKeyHelper;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Hook\InfoActionHook;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Output\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace PageImages\Tests;
|
||||
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Page\PageReferenceValue;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use PageImages\ApiQueryPageImages;
|
||||
|
@ -28,7 +29,7 @@ class ApiQueryPageImagesTest extends MediaWikiIntegrationTestCase {
|
|||
'PageImagesAPIDefaultLicense' => 'free'
|
||||
] );
|
||||
|
||||
$context = $this->createMock( \IContextSource::class );
|
||||
$context = $this->createMock( IContextSource::class );
|
||||
|
||||
$context->method( 'getConfig' )
|
||||
->willReturn( $config );
|
||||
|
|
|
@ -7,13 +7,13 @@ use MediaWiki\Config\Config;
|
|||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Http\HttpRequestFactory;
|
||||
use MediaWiki\Linker\LinksMigration;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleFactory;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use PageImages\Hooks\ParserFileProcessingHookHandlers;
|
||||
use PageImages\PageImageCandidate;
|
||||
use PageImages\PageImages;
|
||||
use Parser;
|
||||
use ParserOptions;
|
||||
use RepoGroup;
|
||||
use WANObjectCache;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace PageImages\Tests;
|
||||
|
||||
use IContextSource;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
|
|
Loading…
Reference in a new issue