src/Handler/FileHandler.php
public function process(StorableFileInterface $source, TargetInterface $target, array $options = [])
    {
        $stored = [
            static::ORIGINAL => $this->storage->store($source, $target->original()),
        ];

        if (array_key_exists(static::CONFIG_VARIANTS, $options)) {
            foreach ($options[ static::CONFIG_VARIANTS ] as $variant => $variantOptions) {

                $stored[ $variant ] = $this->processVariant($source, $target, $variant, $variantOptions);
            }
        }

        return $stored;
    }
public function process(StorableFileInterface $source, TargetInterface $target, array $options = [])
    {
        $stored = [
            static::ORIGINAL => $this->storage->store($source, $target->original()),
        ];

        if (array_key_exists(static::CONFIG_VARIANTS, $options)) {
            foreach ($options[ static::CONFIG_VARIANTS ] as $variant => $variantOptions) {

                $stored[ $variant ] = $this->processVariant($source, $target, $variant, $variantOptions);
            }
        }

        return $stored;
    }
public function process ( StorableFileInterface $ source , TargetInterface $ target , array $ options = [ ] ) { $ stored = [ static :: ORIGINAL => $ this -> storage -> store ( $ source , $ target -> original ( ) ) , ] ; if ( array_key_exists ( static :: CONFIG_VARIANTS , $ options ) ) { foreach ( $ options [ static :: CONFIG_VARIANTS ] as $ variant => $ variantOptions ) { $ stored [ $ variant ] = $ this -> processVariant ( $ source , $ target , $ variant , $ variantOptions ) ; } } return $ stored ; }
Processes and stores a storable file.

@param StorableFileInterface $source
@param TargetInterface $target
@param array $options
@return StoredFileInterface[]    keyed by variant name (or 'original')
Processes and stores a storable file .