ConfigManifestProxy
class ConfigManifestProxy extends CachedConfigCollection implements ProxyConfigCollectionInterface (View source)
Traits
Constants
CACHE_KEY |
|
Properties
protected | Middleware[] | $middlewares | from MiddlewareAware | |
protected | CacheInterface | $cache | from CachedConfigCollection | |
protected | ConfigCollectionInterface | $collection | Nested config to delegate to |
from CachedConfigCollection |
protected | callable | $collectionCreator | from CachedConfigCollection | |
protected | bool | $flush | from CachedConfigCollection | |
protected | bool | $building | Set to true while building config. |
from CachedConfigCollection |
protected | callable | $nestFactory | Injectable factory for nesting config. |
from CachedConfigCollection |
protected | CachedConfigCollection | $parent | ||
protected | array | $configCalls | ||
protected | bool | $trackEmpty |
Methods
Call middleware to get decorated class config
Monitor calls made to get configuration during a request
Checks to see if a config item exists, or a property on that class
Get or build collection
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
Return a list of all config calls made during the request, including how many times they were called and the result
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)
Monitor calls made to get configuration during a request
{@inheritDoc}
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
__construct(CachedConfigCollection $parent)
No description
array
getConfigCalls()
Return a list of all config calls made during the request, including how many times they were called and the result
bool
getTrackEmpty()
Get the value of trackEmpty
$this
setTrackEmpty(bool $trackEmpty)
Set the value of trackEmpty