Merge "ActorMigration: remove unused UserFactory"
This commit is contained in:
commit
2465a9dbc2
3 changed files with 0 additions and 12 deletions
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\User\ActorStoreFactory;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use Wikimedia\IPUtils;
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
|
@ -110,21 +109,16 @@ class ActorMigration {
|
|||
/** @var int Combination of SCHEMA_COMPAT_* constants */
|
||||
private $stage;
|
||||
|
||||
/** @var UserFactory */
|
||||
private $userFactory;
|
||||
|
||||
/** @var ActorStoreFactory */
|
||||
private $actorStoreFactory;
|
||||
|
||||
/**
|
||||
* @param int $stage
|
||||
* @param UserFactory $userFactory
|
||||
* @param ActorStoreFactory $actorStoreFactory
|
||||
* @internal
|
||||
*/
|
||||
public function __construct(
|
||||
$stage,
|
||||
UserFactory $userFactory,
|
||||
ActorStoreFactory $actorStoreFactory
|
||||
) {
|
||||
if ( ( $stage & SCHEMA_COMPAT_WRITE_BOTH ) === 0 ) {
|
||||
|
|
@ -144,7 +138,6 @@ class ActorMigration {
|
|||
}
|
||||
|
||||
$this->stage = $stage;
|
||||
$this->userFactory = $userFactory;
|
||||
$this->actorStoreFactory = $actorStoreFactory;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,6 @@ return [
|
|||
'ActorMigration' => static function ( MediaWikiServices $services ) : ActorMigration {
|
||||
return new ActorMigration(
|
||||
SCHEMA_COMPAT_NEW,
|
||||
$services->getUserFactory(),
|
||||
$services->getActorStoreFactory()
|
||||
);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ class ActorMigrationTest extends MediaWikiLangTestCase {
|
|||
$mwServices = MediaWikiServices::getInstance();
|
||||
return new class(
|
||||
$stage,
|
||||
$mwServices->getUserFactory(),
|
||||
$mwServices->getActorStoreFactory()
|
||||
) extends ActorMigration {
|
||||
protected const TEMP_TABLES = [
|
||||
|
|
@ -656,7 +655,6 @@ class ActorMigrationTest extends MediaWikiLangTestCase {
|
|||
$this->hideDeprecated( 'ActorMigration::getInsertValuesWithTempTable for am1_user' );
|
||||
$m = new class(
|
||||
$stage,
|
||||
MediaWikiServices::getInstance()->getUserFactory(),
|
||||
MediaWikiServices::getInstance()->getActorStoreFactory()
|
||||
) extends ActorMigration {
|
||||
protected const FORMER_TEMP_TABLES = [ 'am1_user' => '1.30' ];
|
||||
|
|
@ -673,7 +671,6 @@ class ActorMigrationTest extends MediaWikiLangTestCase {
|
|||
public function testInsertWithTempTableCallbackMissingFields( $stage ) {
|
||||
$m = new class(
|
||||
$stage,
|
||||
MediaWikiServices::getInstance()->getUserFactory(),
|
||||
MediaWikiServices::getInstance()->getActorStoreFactory()
|
||||
) extends ActorMigration {
|
||||
protected const TEMP_TABLES = [
|
||||
|
|
@ -772,7 +769,6 @@ class ActorMigrationTest extends MediaWikiLangTestCase {
|
|||
public function testCheckDeprecation() {
|
||||
$m = new class(
|
||||
SCHEMA_COMPAT_NEW,
|
||||
MediaWikiServices::getInstance()->getUserFactory(),
|
||||
MediaWikiServices::getInstance()->getActorStoreFactory()
|
||||
) extends ActorMigration {
|
||||
protected const DEPRECATED = [ 'soft' => null, 'hard' => '1.34' ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue