mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Update lib/Cake/Configure/IniReader.php
Updated docblock and set NULL as the default value of $path
This commit is contained in:
parent
a4c382b23a
commit
83c05c24b3
1 changed files with 2 additions and 2 deletions
|
@ -72,11 +72,11 @@ class IniReader implements ConfigReaderInterface {
|
||||||
* Build and construct a new ini file parser. The parser can be used to read
|
* Build and construct a new ini file parser. The parser can be used to read
|
||||||
* ini files that are on the filesystem.
|
* ini files that are on the filesystem.
|
||||||
*
|
*
|
||||||
* @param string $path Path to load ini config files from.
|
* @param string $path Path to load ini config files from. Defaults to APP . 'Config' . DS
|
||||||
* @param string $section Only get one section, leave null to parse and fetch
|
* @param string $section Only get one section, leave null to parse and fetch
|
||||||
* all sections in the ini file.
|
* all sections in the ini file.
|
||||||
*/
|
*/
|
||||||
public function __construct($path, $section = null) {
|
public function __construct($path = null, $section = null) {
|
||||||
if (!$path) {
|
if (!$path) {
|
||||||
$path = APP . 'Config' . DS;
|
$path = APP . 'Config' . DS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue