CachedConfigCollection
class CachedConfigCollection implements ConfigCollectionInterface (View source)
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
Middleware[]
getMiddlewares()
$this
setMiddlewares(Middleware[] $middlewares)
$this
addMiddleware(Middleware $middleware)
static CachedConfigCollection
create()
callable
getNestFactory()
Get callback for nesting the inner collection
$this
setNestFactory(callable $factory)
Set callback for nesting the inner collection
mixed
get(string $class, string $name = null, int|true $excludeMiddleware = 0)
Fetches value for a class, or a property on that class
array
getAll()
Get complete config (excludes middleware)
bool
exists(string $class, string $name = null, int|true $excludeMiddleware = 0)
Checks to see if a config item exists, or a property on that class
array
getMetadata()
Returns the entire metadata
getHistory()
ConfigCollectionInterface
getCollection()
Get or build collection
__destruct()
Commits the cache
ConfigCollectionInterface
nest()
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
$this
setCache(CacheInterface $cache)
Set a PSR-16 cache