Skip to content
Permalink
Browse files

Renaming method to match other core classes with similar features.

  • Loading branch information...
markstory committed Dec 4, 2010
1 parent 9b8456c commit da632fe19139406fd076b962ff632c1e90bb2d42
Showing with 4 additions and 4 deletions.
  1. +2 −2 cake/libs/configure.php
  2. +2 −2 cake/tests/cases/libs/configure.test.php
@@ -264,14 +264,14 @@ public static function delete($var = null) {
*
* To add a new reader to Configure:
*
* `Configure::reader('ini', new IniReader());`
* `Configure::config('ini', new IniReader());`
*
* @param string $alias The name of the reader being configured. This alias is used later to
* read values from a specific reader.
* @param ConfigReaderInterface $reader The reader to append.
* @return void
*/
public static function reader($alias, ConfigReaderInterface $reader) {
public static function config($alias, ConfigReaderInterface $reader) {
self::$_readers[$alias] = $reader;
}
@@ -265,7 +265,7 @@ function testVersion() {
*/
function testReaderSetup() {
$reader = new PhpReader();
Configure::reader('test', $reader);
Configure::config('test', $reader);
$configured = Configure::configured();
$this->assertTrue(in_array('test', $configured));
@@ -279,7 +279,7 @@ function testReaderSetup() {
*/
function testReaderExceptionOnIncorrectClass() {
$reader = new StdClass();
Configure::reader('test', $reader);
Configure::config('test', $reader);
}
}

0 comments on commit da632fe

Please sign in to comment.
You can’t perform that action at this time.