class InterventionManagerFactory implements Factory (View source)

Instantiates an intervention ImageManager class with its own driver instance.

This is necessary to avoid having a singleton of the driver used across all image managers, which is what happens if we try to do this using %$InterventionImageDriver yaml config.

Methods

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

Creates a new service instance.

Details

object|null 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|null

The created service instances.