1: <?php
2: /**
3: * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4: * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
5: *
6: * Licensed under The MIT License
7: * Redistributions of files must retain the above copyright notice.
8: *
9: * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
10: * @link http://cakephp.org CakePHP(tm) Project
11: * @package Cake.Core
12: * @since CakePHP(tm) v 1.0.0.2363
13: * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
14: */
15:
16: /**
17: * An interface for creating objects compatible with Configure::load()
18: *
19: * @package Cake.Core
20: */
21: interface ConfigReaderInterface {
22:
23: /**
24: * Read method is used for reading configuration information from sources.
25: * These sources can either be static resources like files, or dynamic ones like
26: * a database, or other datasource.
27: *
28: * @param string $key
29: * @return array An array of data to merge into the runtime configuration
30: */
31: public function read($key);
32:
33: }
34: