category Zend
package Zend_Config

 Methods

Read a config from a file.

fromFile(string $filename, bool $returnConfigObject) : array | \Zend\Config\Config

Parameters

$filename

string

$returnConfigObject

bool

Exceptions

\Zend\Config\Exception\InvalidArgumentException
\Zend\Config\Exception\RuntimeException

Returns

Read configuration from multiple files and merge them.

fromFiles(array $files, bool $returnConfigObject) : array | \Zend\Config\Config

Parameters

$files

array

$returnConfigObject

bool

Returns

Get the reader plugin manager

getReaderPluginManager() : \Zend\Config\ReaderPluginManager

Set config reader for file extension

registerReader(string $extension, string | \Zend\Config\Reader\ReaderInterface $reader) 

Parameters

$extension

string

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Set reader plugin manager

setReaderPluginManager(\Zend\Config\ReaderPluginManager $readers) 

Parameters

 Properties

 

Plugin manager for loading readers

$readers : null | \Zend\Config\ReaderPluginManager

 

Registered config file extensions.

$extensions : array

key is extension, value is reader instance or plugin name