Reorg: Move PageProps to page/ and namespace it to MediaWiki\Page\
We should slowly migrate page/ to have proper namespace too but that'll be pretty big. Bug: T321882 Change-Id: I3e57be8aa8ac08971f190233196e84ea33023d4a
This commit is contained in:
parent
043befec82
commit
ca9ec658cb
9 changed files with 15 additions and 3 deletions
|
|
@ -1541,6 +1541,7 @@ $wgAutoloadLocalClasses = [
|
|||
'MediaWiki\\Page\\PageIdentity' => __DIR__ . '/includes/page/PageIdentity.php',
|
||||
'MediaWiki\\Page\\PageIdentityValue' => __DIR__ . '/includes/page/PageIdentityValue.php',
|
||||
'MediaWiki\\Page\\PageLookup' => __DIR__ . '/includes/page/PageLookup.php',
|
||||
'MediaWiki\\Page\\PageProps' => __DIR__ . '/includes/page/PageProps.php',
|
||||
'MediaWiki\\Page\\PageRecord' => __DIR__ . '/includes/page/PageRecord.php',
|
||||
'MediaWiki\\Page\\PageReference' => __DIR__ . '/includes/page/PageReference.php',
|
||||
'MediaWiki\\Page\\PageReferenceValue' => __DIR__ . '/includes/page/PageReferenceValue.php',
|
||||
|
|
@ -2101,7 +2102,7 @@ $wgAutoloadLocalClasses = [
|
|||
'PageDataRequestHandler' => __DIR__ . '/includes/linkeddata/PageDataRequestHandler.php',
|
||||
'PageExists' => __DIR__ . '/maintenance/pageExists.php',
|
||||
'PageLangLogFormatter' => __DIR__ . '/includes/logging/PageLangLogFormatter.php',
|
||||
'PageProps' => __DIR__ . '/includes/PageProps.php',
|
||||
'PageProps' => __DIR__ . '/includes/page/PageProps.php',
|
||||
'PageQueryPage' => __DIR__ . '/includes/specialpage/PageQueryPage.php',
|
||||
'Pager' => __DIR__ . '/includes/pager/Pager.php',
|
||||
'PaginatingSearchEngine' => __DIR__ . '/includes/search/PaginatingSearchEngine.php',
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ use MediaWiki\Page\ContentModelChangeFactory;
|
|||
use MediaWiki\Page\DeletePageFactory;
|
||||
use MediaWiki\Page\MergeHistoryFactory;
|
||||
use MediaWiki\Page\MovePageFactory;
|
||||
use MediaWiki\Page\PageProps;
|
||||
use MediaWiki\Page\PageStore;
|
||||
use MediaWiki\Page\PageStoreFactory;
|
||||
use MediaWiki\Page\ParserOutputAccess;
|
||||
|
|
@ -160,7 +161,6 @@ use MWLBFactory;
|
|||
use NamespaceInfo;
|
||||
use ObjectCache;
|
||||
use OldRevisionImporter;
|
||||
use PageProps;
|
||||
use Parser;
|
||||
use ParserCache;
|
||||
use ParserFactory;
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ use MediaWiki\Page\DeletePageFactory;
|
|||
use MediaWiki\Page\MergeHistoryFactory;
|
||||
use MediaWiki\Page\MovePageFactory;
|
||||
use MediaWiki\Page\PageCommandFactory;
|
||||
use MediaWiki\Page\PageProps;
|
||||
use MediaWiki\Page\PageStore;
|
||||
use MediaWiki\Page\PageStoreFactory;
|
||||
use MediaWiki\Page\ParserOutputAccess;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ use MediaWiki\Linker\LinksMigration;
|
|||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Page\PageIdentity;
|
||||
use MediaWiki\Page\PageProps;
|
||||
use MediaWiki\Page\RedirectLookup;
|
||||
use MediaWiki\Permissions\RestrictionStore;
|
||||
use MediaWiki\Revision\RevisionLookup;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
use MediaWiki\Page\PageProps;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -20,9 +20,12 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
namespace MediaWiki\Page;
|
||||
|
||||
use MapCacheLRU;
|
||||
use MediaWiki\Cache\LinkBatchFactory;
|
||||
use MediaWiki\Page\PageIdentity;
|
||||
use MediaWiki\Title\TitleArray;
|
||||
use Title;
|
||||
use Wikimedia\Rdbms\ILoadBalancer;
|
||||
|
||||
/**
|
||||
|
|
@ -281,3 +284,5 @@ class PageProps {
|
|||
$this->cache->setField( 0, $pageID, $pageProperties );
|
||||
}
|
||||
}
|
||||
|
||||
class_alias( PageProps::class, 'PageProps' );
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Page\PageIdentity;
|
||||
use MediaWiki\Page\PageIdentityValue;
|
||||
use MediaWiki\Page\PageProps;
|
||||
use MediaWiki\Page\PageReference;
|
||||
use MediaWiki\Page\PageReferenceValue;
|
||||
use MediaWiki\Permissions\PermissionStatus;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\Page\PageProps;
|
||||
|
||||
class WikiCategoryPageTest extends MediaWikiLangTestCase {
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue