Interface ConfigReaderInterface
An interface for creating objects compatible with Configure::load()
Package: Cake\Core
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Configure/ConfigReaderInterface.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Configure/ConfigReaderInterface.php
Method Summary
Method Detail
dump() public ¶
dump( string $key , array $data )
Dumps the configure data into source.
Parameters
- string $key
- The identifier to write to.
- array $data
- The data to dump.
Returns
boolean
True on success or false on failure.
True on success or false on failure.
read() public ¶
read( string $key )
Read method is used for reading configuration information from sources. These sources can either be static resources like files, or dynamic ones like a database, or other datasource.
Parameters
- string $key
Returns
array
An array of data to merge into the runtime configuration
An array of data to merge into the runtime configuration