CachedConfigCollection
class CachedConfigCollection implements ConfigCollectionInterface (View source)
Traits
Constants
| CACHE_KEY | 
                     
  | 
            
Properties
| protected | Middleware[] | $middlewares | from MiddlewareAware | |
| protected | CacheInterface | $cache | ||
| protected | ConfigCollectionInterface | $collection | Nested config to delegate to  | 
                |
| protected | callable | $collectionCreator | ||
| protected | bool | $flush | ||
| protected | bool | $building | Set to true while building config.  | 
                |
| protected | callable | $nestFactory | Injectable factory for nesting config.  | 
                
Methods
Call middleware to get decorated class config
Fetches value for a class, or a property on that class
Checks to see if a config item exists, or a property on that class
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
Details
        
                            Middleware[]
    getMiddlewares()
        
    
    No description
        
                            $this
    setMiddlewares(Middleware[] $middlewares)
        
    
    No description
        
                            $this
    addMiddleware(Middleware $middleware)
        
    
    No description
        
                    protected        array
    callMiddleware(string $class, int|bool $excludeMiddleware, callable $last)
        
    
    Call middleware to get decorated class config
        
                static            CachedConfigCollection
    create()
        
    
    No description
        
                            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()
        
    
    No description
        
                            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
        
                            $this
    setCollectionCreator(callable $collectionCreator)
        
    
    No description
        
                            callable
    getCollectionCreator()
        
    
    No description
        
                            CacheInterface
    getCache()
        
    
    No description
        
                            $this
    setFlush(bool $flush)
        
    
    No description
        
                            bool
    getFlush()
        
    
    No description