class CoreConfigFactory (View source)

Factory for silverstripe configs

Methods

__construct(CacheFactory $cacheFactory = null)

Create factory

createRoot()

Create root application config.

createCore()

Rebuild new uncached config, which is mutable

buildYamlTransformerForPath(array|string $dirs)

No description

Details

__construct(CacheFactory $cacheFactory = null)

Create factory

Parameters

CacheFactory $cacheFactory

CachedConfigCollection createRoot()

Create root application config.

This will be an immutable cached config, which conditionally generates a nested "core" config.

Return Value

CachedConfigCollection

MemoryConfigCollection createCore()

Rebuild new uncached config, which is mutable

Return Value

MemoryConfigCollection

PrivateStaticTransformer buildStaticTransformer()

YamlTransformer buildYamlTransformerForPath(array|string $dirs)

Parameters

array|string $dirs

Base dir to load from

Return Value

YamlTransformer