class ImageBackendFactory implements Factory (View source)

Creates backends for images as necessary, avoiding redundant asset writes and loads

Properties

protected array $cache

In memory cache keyed by hash/variant

protected Factory $creator

Methods

public
__construct(Factory $creator)

No description

public
object
create(string $service, array $params = [])

Creates a new service instance.

Details

__construct(Factory $creator)

No description

Parameters

Factory $creator

object create(string $service, array $params = [])

Creates a new service instance.

Parameters

string $service

The class name of the service.

array $params

The constructor parameters.

Return Value

object

The created service instances.