2018-03-08 21:16:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter;
|
|
|
|
|
2023-08-19 23:08:09 +00:00
|
|
|
use MediaWiki\User\ActorMigrationBase;
|
2018-03-08 21:16:25 +00:00
|
|
|
use MediaWiki\User\ActorStoreFactory;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Temporary class for actor migration
|
|
|
|
*/
|
|
|
|
class AbuseFilterActorMigration extends ActorMigrationBase {
|
|
|
|
|
|
|
|
public const SERVICE_NAME = 'AbuseFilterActorMigration';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $stage
|
|
|
|
* @param ActorStoreFactory $actorStoreFactory
|
|
|
|
*/
|
|
|
|
public function __construct( $stage, ActorStoreFactory $actorStoreFactory ) {
|
|
|
|
parent::__construct(
|
|
|
|
[
|
|
|
|
'af_user' => [],
|
|
|
|
'afh_user' => [],
|
|
|
|
],
|
|
|
|
$stage,
|
|
|
|
$actorStoreFactory,
|
|
|
|
[ 'allowUnknown' => false ]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|