Interface ConfigEngineInterface
An interface for creating objects compatible with Configure::load()
Namespace: Cake\Core\Configure
Method Summary
-
dump() public
Dumps the configure data into the storage key/file of the given
$key
. -
read() public
Read a configuration file/storage key
Method Detail
dump() ¶ public
dump(string $key, array $data): bool
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
bool
read() ¶ public
read(string $key): array
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
array