interface CacheFactory implements Factory

Methods

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

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

at line 19
object create(string $service, array $params = array())

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.