FileProcessingService
File processing service
Table of Contents
Properties
- $driver : DriverInterface
- $eventDispatcher : EventDispatcherInterface
- $storage : ResourceStorage
Methods
- __construct() : mixed
- Creates this object.
- processFile() : ProcessedFile
- Processes a file
- getProcessorByTask() : ProcessorInterface
- process() : mixed
- Processes the file
Properties
$driver
protected
DriverInterface
$driver
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$storage
protected
ResourceStorage
$storage
Methods
__construct()
Creates this object.
public
__construct(ResourceStorage $storage, DriverInterface $driver[, EventDispatcherInterface|null $eventDispatcher = null ]) : mixed
Parameters
- $storage : ResourceStorage
- $driver : DriverInterface
- $eventDispatcher : EventDispatcherInterface|null = null
processFile()
Processes a file
public
processFile(FileInterface $fileObject, ResourceStorage $targetStorage, string $taskType, array<string|int, mixed> $configuration) : ProcessedFile
Parameters
- $fileObject : FileInterface
-
The file object
- $targetStorage : ResourceStorage
-
The storage to store the processed file in
- $taskType : string
- $configuration : array<string|int, mixed>
Tags
Return values
ProcessedFilegetProcessorByTask()
protected
getProcessorByTask(TaskInterface $task) : ProcessorInterface
Parameters
- $task : TaskInterface
Return values
ProcessorInterfaceprocess()
Processes the file
protected
process(ProcessedFile $processedFile, ResourceStorage $targetStorage) : mixed
Parameters
- $processedFile : ProcessedFile
- $targetStorage : ResourceStorage
-
The storage to put the processed file into