class CoreConfigFactory (View source)

Factory for silverstripe configs

Properties

protected CacheFactory $cacheFactory

Methods

public
__construct(CacheFactory $cacheFactory = null)

Create factory

public
createRoot()

Create root application config.

public
createCore()

Rebuild new uncached config, which is mutable

protected
buildYamlTransformer()

No description

public
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

protected YamlTransformer buildYamlTransformer()

No description

Return Value

YamlTransformer

PrivateStaticTransformer buildStaticTransformer()

No description

YamlTransformer buildYamlTransformerForPath(array|string $dirs)

No description

Parameters

array|string $dirs

Base dir to load from

Return Value

YamlTransformer