mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Move new IMigrator method to a specific interface ISizeEstimationMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
09917b8583
commit
6da413f7af
4 changed files with 8 additions and 4 deletions
|
|
@ -42,6 +42,7 @@ use OCP\IUser;
|
|||
use OCP\UserMigration\IExportDestination;
|
||||
use OCP\UserMigration\IImportSource;
|
||||
use OCP\UserMigration\IMigrator;
|
||||
use OCP\UserMigration\ISizeEstimationMigrator;
|
||||
use OCP\UserMigration\TMigratorBasicVersionHandling;
|
||||
use Sabre\VObject\Component as VObjectComponent;
|
||||
use Sabre\VObject\Component\VCalendar;
|
||||
|
|
@ -53,7 +54,7 @@ use Safe\Exceptions\StringsException;
|
|||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Throwable;
|
||||
|
||||
class CalendarMigrator implements IMigrator {
|
||||
class CalendarMigrator implements IMigrator, ISizeEstimationMigrator {
|
||||
|
||||
use TMigratorBasicVersionHandling;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ use OCP\IUser;
|
|||
use OCP\UserMigration\IExportDestination;
|
||||
use OCP\UserMigration\IImportSource;
|
||||
use OCP\UserMigration\IMigrator;
|
||||
use OCP\UserMigration\ISizeEstimationMigrator;
|
||||
use OCP\UserMigration\TMigratorBasicVersionHandling;
|
||||
use Sabre\VObject\Component\VCard;
|
||||
use Sabre\VObject\Parser\Parser as VObjectParser;
|
||||
|
|
@ -50,7 +51,7 @@ use Safe\Exceptions\StringsException;
|
|||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Throwable;
|
||||
|
||||
class ContactsMigrator implements IMigrator {
|
||||
class ContactsMigrator implements IMigrator, ISizeEstimationMigrator {
|
||||
|
||||
use TMigratorBasicVersionHandling;
|
||||
|
||||
|
|
|
|||
|
|
@ -36,11 +36,12 @@ use OCP\IUser;
|
|||
use OCP\UserMigration\IExportDestination;
|
||||
use OCP\UserMigration\IImportSource;
|
||||
use OCP\UserMigration\IMigrator;
|
||||
use OCP\UserMigration\ISizeEstimationMigrator;
|
||||
use OCP\UserMigration\TMigratorBasicVersionHandling;
|
||||
use OCP\UserMigration\UserMigrationException;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class TrashbinMigrator implements IMigrator {
|
||||
class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
|
||||
|
||||
use TMigratorBasicVersionHandling;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,11 +37,12 @@ use OCP\IUser;
|
|||
use OCP\UserMigration\IExportDestination;
|
||||
use OCP\UserMigration\IImportSource;
|
||||
use OCP\UserMigration\IMigrator;
|
||||
use OCP\UserMigration\ISizeEstimationMigrator;
|
||||
use OCP\UserMigration\TMigratorBasicVersionHandling;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Throwable;
|
||||
|
||||
class AccountMigrator implements IMigrator {
|
||||
class AccountMigrator implements IMigrator, ISizeEstimationMigrator {
|
||||
use TMigratorBasicVersionHandling;
|
||||
|
||||
use TAccountsHelper;
|
||||
|
|
|
|||
Loading…
Reference in a new issue