FactoryEntry
class FactoryEntry implements EntryInterface (View source)
Provides a wrapper for other entries to disallow caching of returned values.
Methods
static EntryInterface
createFromCacheParameters(array $parameters)
Initializes the entry from the given container cache parameters.
array
getCacheParameters()
Returns the container cache parameters for the entry.
bool
isFactory()
Tells if we should not cache the value because the entry is a factory.
mixed
getValue(ContainerInterface $container)
Returns the value for the container entry.
Details
at line 23
__construct(EntryInterface $type)
FactoryType constructor.
at line 29
static EntryInterface
createFromCacheParameters(array $parameters)
Initializes the entry from the given container cache parameters.
at line 38
array
getCacheParameters()
Returns the container cache parameters for the entry.
at line 47
bool
isFactory()
Tells if we should not cache the value because the entry is a factory.
at line 53
mixed
getValue(ContainerInterface $container)
Returns the value for the container entry.