\Cake\Core\ConfigureConfigEngineInterface

An interface for creating objects compatible with Configure::load()

Summary

Methods
Constants
read()
dump()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

read()

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 —

An array of data to merge into the runtime configuration

dump()

dump(string  $key, array  $data) : boolean

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

boolean —

True on success or false on failure.