2012-01-29 18:30:05 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2012-03-13 02:46:07 +00:00
|
|
|
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2012-01-29 18:30:05 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2012-03-13 02:46:07 +00:00
|
|
|
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2012-01-29 18:30:05 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
|
* @package Cake.Core
|
|
|
|
* @since CakePHP(tm) v 1.0.0.2363
|
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An interface for creating objects compatible with Configure::load()
|
|
|
|
*
|
|
|
|
* @package Cake.Core
|
|
|
|
*/
|
|
|
|
interface ConfigReaderInterface {
|
2012-03-03 22:36:59 +00:00
|
|
|
|
2012-01-29 18:30:05 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* @param string $key
|
|
|
|
* @return array An array of data to merge into the runtime configuration
|
|
|
|
*/
|
|
|
|
public function read($key);
|
2012-03-03 22:36:59 +00:00
|
|
|
|
2012-01-29 18:30:05 +00:00
|
|
|
}
|