Class

eZ\Bundle\EzPublishCoreBundle\Imagine\IORepositoryResolver

class IORepositoryResolver implements ResolverInterface

LiipImagineBundle cache resolver using eZ IO repository.

Constants

VARIATION_ORIGINAL

Methods

__construct(IOServiceInterface $ioService, RequestContext $requestContext, FilterConfiguration $filterConfiguration, VariationPurger $variationPurger, VariationPathGenerator $variationPathGenerator)

isStored($path, $filter)

resolve($path, $filter)

store(BinaryInterface $binary, $path, $filter)

Stores image alias in the IO Repository.

remove(array $paths, array $filters)

string getFilePath(string $path, string $filter)

Returns path for filtered image from original path, using the VariationPathGenerator.

Details

at line 50
public __construct(IOServiceInterface $ioService, RequestContext $requestContext, FilterConfiguration $filterConfiguration, VariationPurger $variationPurger, VariationPathGenerator $variationPathGenerator)

Parameters

IOServiceInterface $ioService
RequestContext $requestContext
FilterConfiguration $filterConfiguration
VariationPurger $variationPurger
VariationPathGenerator $variationPathGenerator

at line 64
public isStored($path, $filter)

Parameters

$path
$filter

at line 69
public resolve($path, $filter)

Parameters

$path
$filter

at line 103
public store(BinaryInterface $binary, $path, $filter)

Stores image alias in the IO Repository.

A temporary file is created to dump the filtered image and is used as basis for creation in the IO Repository.

{@inheritdoc}

Parameters

BinaryInterface $binary
$path
$filter

at line 120
public remove(array $paths, array $filters)

Parameters

array $paths The paths where the original files are expected to be.
array $filters The imagine filters in effect.

at line 151
public string getFilePath(string $path, string $filter)

Returns path for filtered image from original path, using the VariationPathGenerator.

Parameters

string $path
string $filter

Return Value

string