com\setasign\SetaFramework\Config\Reader
Ini Class Config Reader Ini
File: /SetaFramework/src/Config/Reader/Ini.php
Class hierarchy
Implements
Summary
Properties
Methods
__construct()
Constructor
Parameters
- $filename : string
- $sections : null|string|array
- $raw : bool
Exceptions
Throws \InvalidArgumentException
flatten()
Ini entries with [] in the key name will be arrays.
Because of this we have to flatten the array otherwise we would have to implement diffent handling logics in read.
Parameters
- $parsedIni : array
Exceptions
Throws \com\setasign\SetaFramework\Exception If an invalid key name was used
getAbsolutePath()
Gets a absolute path of the path
Used for all path definitions in config file.
If the path is a relative path the application path dir scope will prepend before the path.
Parameters
- $path : string
readSection()
Search a required section in the $sections array and add found values to $result array
This method call itself for every inherited section.
Parameters
- $sectionName : string
Name of the section which we search
- $sections : array
All parsed sections with their values. Reference is used to save performance, the array shouldn't be changed in this method.
- $result : array
