Class

eZ\Bundle\EzPublishIOBundle\Migration\FileMigrator\FileMigrator

class FileMigrator extends MigrationHandler implements FileMigratorInterface

Methods

__construct(HandlerFactory $metadataHandlerFactory, HandlerFactory $binarydataHandlerFactory, LoggerInterface $logger = null)

from MigrationHandler
MigrationHandlerInterface setIODataHandlersByIdentifiers(string $fromMetadataHandlerIdentifier, string $fromBinarydataHandlerIdentifier, string $toMetadataHandlerIdentifier, string $toBinarydataHandlerIdentifier)

Set the from/to handlers based on identifiers.

from MigrationHandler
bool migrateFile(BinaryFile $binaryFile)

Migrate a file.

Details

in MigrationHandler at line 38
public __construct(HandlerFactory $metadataHandlerFactory, HandlerFactory $binarydataHandlerFactory, LoggerInterface $logger = null)

Parameters

HandlerFactory $metadataHandlerFactory
HandlerFactory $binarydataHandlerFactory
LoggerInterface $logger

in MigrationHandler at line 48
public MigrationHandlerInterface setIODataHandlersByIdentifiers(string $fromMetadataHandlerIdentifier, string $fromBinarydataHandlerIdentifier, string $toMetadataHandlerIdentifier, string $toBinarydataHandlerIdentifier)

Set the from/to handlers based on identifiers.

Returns the MigrationHandler.

Parameters

string $fromMetadataHandlerIdentifier
string $fromBinarydataHandlerIdentifier
string $toMetadataHandlerIdentifier
string $toBinarydataHandlerIdentifier

Return Value

MigrationHandlerInterface

at line 17
public bool migrateFile(BinaryFile $binaryFile)

Migrate a file.

Parameters

BinaryFile $binaryFile Information about the file

Return Value

bool Success or failure