CachedConfigCollection
class CachedConfigCollection implements ConfigCollectionInterface
Traits
Constants
CACHE_KEY |
|
Methods
No description
Get callback for nesting the inner collection
Set callback for nesting the inner collection
Fetches value for a class, or a property on that class
Get complete config (excludes middleware)
Checks to see if a config item exists, or a property on that class
Returns the entire metadata
No description
Get or build collection
Commits the cache
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
Set a PSR-16 cache
No description
No description
No description
No description
No description
Details
in MiddlewareAware at line 15
Middleware[]
getMiddlewares()
at line 238
$this
setMiddlewares(Middleware[] $middlewares)
in MiddlewareAware at line 34
$this
addMiddleware(Middleware $middleware)
at line 59
static CachedConfigCollection
create()
at line 69
callable
getNestFactory()
Get callback for nesting the inner collection
at line 80
$this
setNestFactory(callable $factory)
Set callback for nesting the inner collection
at line 86
mixed
get(string $class, string $name = null, int|true $excludeMiddleware)
Fetches value for a class, or a property on that class
at line 91
array
getAll()
Get complete config (excludes middleware)
at line 96
bool
exists(string $class, string $name = null, int|true $excludeMiddleware)
Checks to see if a config item exists, or a property on that class
at line 101
array
getMetadata()
Returns the entire metadata
at line 106
getHistory()
at line 116
ConfigCollectionInterface
getCollection()
Get or build collection
at line 153
__destruct()
Commits the cache
at line 164
ConfigCollectionInterface
nest()
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
at line 182
$this
setCache(CacheInterface $cache)
Set a PSR-16 cache
at line 195
$this
setCollectionCreator(callable $collectionCreator)
at line 204
callable
getCollectionCreator()
at line 212
CacheInterface
getCache()
at line 221
$this
setFlush(bool $flush)
at line 233
bool
getFlush()
at line 249
update($class, $name, $value)
deprecated
deprecated 4.0...5.0 Please use YAML configuration, ::modify()->set() or ::modify()->merge()