interface CacheFactory implements Factory (View source)

Methods

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

Note: While the returned object is used as a singleton (by the originating Injector->get() call), this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.

Details

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

Note: While the returned object is used as a singleton (by the originating Injector->get() call), this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.

Parameters

string $service

The class name of the service.

array $params

The constructor parameters.

Return Value

object

The created service instances.