FileProcessingService

This is a general service for creating Processed Files a.k.a. processing a File object with a given configuration.

This is how it works: -> File->process(string $taskType, array $configuration) -> ResourceStorage->processFile(File $file, $taskType, array $configuration) -> FileProcessingService->processFile(File $file, $taskType, array $configuration)

This class then transforms the information of a Task through a Processor into a ProcessedFile object. For this, the DB is checked if there is a ProcessedFile which has been processed or does not need to be processed. If processing is required, a valid Processor is searched for to process the Task object (which is retrieved from ProcessedFile->getTask()).

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$processedFileRepository  : ProcessedFileRepository
$processorRegistry  : ProcessorRegistry

Methods

__construct()  : mixed
processFile()  : ProcessedFile
getProcessorByTask()  : ProcessorInterface

Properties

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

Methods


        
On this page

Search results