interface PreProcessorInterface implements ProcessorInterface (View source)

Methods

$this
readConfiguration(Repository $config)

Initialize the processor from the configured values.

int
getPreProcessPriority()

Get the priority of this pre-processor.

bool
shouldPreProcess(ImportingFile $file, ImportOptions $options)

Check if this pre-processor should process a file being imported.

preProcess(ImportingFile $file, ImportOptions $options)

Pre-process a file being imported.

Details

$this readConfiguration(Repository $config)

Initialize the processor from the configured values.

Parameters

Repository $config

Return Value

$this

int getPreProcessPriority()

Get the priority of this pre-processor.

Return Value

int

bool shouldPreProcess(ImportingFile $file, ImportOptions $options)

Check if this pre-processor should process a file being imported.

Parameters

ImportingFile $file

the file being imported

ImportOptions $options

options to b used when importing the file

Return Value

bool

preProcess(ImportingFile $file, ImportOptions $options)

Pre-process a file being imported.

Parameters

ImportingFile $file

the file being imported

ImportOptions $options

options to b used when importing the file