Methods
Read a config from a file.
fromFile(string $filename, bool $returnConfigObject, bool $useIncludePath) : array | \Zend\Config\Config
Parameters
$filename
string
$returnConfigObject
bool
$useIncludePath
bool
Exceptions
Returns
Read configuration from multiple files and merge them.
fromFiles(array $files, bool $returnConfigObject, bool $useIncludePath) : array | \Zend\Config\Config
Parameters
$files
array
$returnConfigObject
bool
$useIncludePath
bool
Returns
Set config writer for file extension
registerWriter(string $extension, string | \Zend\Config\Writer\AbstractWriter $writer) : void
Parameters
$extension
string
Exceptions
Set reader plugin manager
setReaderPluginManager(\Zend\Config\ReaderPluginManager $readers) : void
Set writer plugin manager
setWriterPluginManager(\Zend\Config\WriterPluginManager $writers) : void
Writes a config to a file
toFile(string $filename, array | \Zend\Config\Config $config) : bool
Parameters
$filename
string
Exceptions
Returns
bool
TRUE on success | FALSE on failure
Properties
Registered config file extensions.
$extensions : array
key is extension, value is reader instance or plugin name
Register config file extensions for writing
key is extension, value is writer instance or plugin name
$writerExtensions : array