Baleen\Cli\Config\ConfigStorage

class ConfigStorage

Class ConfigStorage.

property projectFileSystem

protected FilesystemInterface

property localConfigStack

protected array

property processor

protected Processor

property configClass

protected string

property definition

protected ConfigurationInterface

property defaultFileName

protected string

__construct($configClass, FilesystemInterface $projectFileSystem, $localConfigStack =[])

ConfigStorage constructor.

Parameters:
  • $configClass
  • $projectFileSystem (FilesystemInterface) –
  • $localConfigStack
load($configFileName = null)
Parameters:
  • $configFileName (string) – The path to the consumer’s config file (eg .baleen.yml) relative to the project filesystem
Returns:

Config

write(ConfigInterface $config)
Parameters:
Returns:

bool

isInitialized(ConfigInterface $config)

Returns whether the specified configuration has an existing user-facing config file.

Parameters:
Returns:

bool