CallableEntry
class CallableEntry implements EntryInterface (View source)
Container entry that uses a callable to determine the value for the entry.
Methods
__construct(callable $callable)
CallableEntry constructor.
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(callable $callable)
CallableEntry constructor.
at line 29
static EntryInterface
createFromCacheParameters(array $parameters)
Initializes the entry from the given container cache parameters.
at line 35
array
getCacheParameters()
Returns the container cache parameters for the entry.
at line 41
bool
isFactory()
Tells if we should not cache the value because the entry is a factory.
at line 47
mixed
getValue(ContainerInterface $container)
Returns the value for the container entry.