Interface ConfigEngineInterface
An interface for creating objects compatible with Configure::load()
Direct Implementers
- Cake\Core\Configure\Engine\IniConfig
- Cake\Core\Configure\Engine\JsonConfig
- Cake\Core\Configure\Engine\PhpConfig
Method Summary
- dump() publicDumps the configure data into the storage key/file of the given
$key
. - read() publicRead a configuration file/storage key
Method Detail
dump()source public
dump( string $key , array $data )
Dumps the configure data into the storage key/file of the given $key
.
Parameters
- string
$key
- The identifier to write to.
- array
$data
- The data to dump.
Returns
booleanTrue on success or false on failure.
read()source public
read( string $key )
Read a configuration file/storage key
This 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
- Key to read.
Returns
arrayAn array of data to merge into the runtime configuration
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Core.Configure.ConfigEngineInterface.html