Browse Source

Merge pull request #5703 from ceeram/3.0-core

Update docblocks and readme
ADmad 11 years ago
parent
commit
0d1caeb5fd
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/Core/Configure.php
  2. 3 3
      src/Core/README.md

+ 2 - 2
src/Core/Configure.php

@@ -279,11 +279,11 @@ class Configure
      * Given that the 'default' engine is an instance of PhpConfig.
      * Save all data in Configure to the file `my_config.php`:
      *
-     * `Configure::dump('my_config.php', 'default');`
+     * `Configure::dump('my_config', 'default');`
      *
      * Save only the error handling configuration:
      *
-     * `Configure::dump('error.php', 'default', ['Error', 'Exception'];`
+     * `Configure::dump('error', 'default', ['Error', 'Exception'];`
      *
      * @param string $key The identifier to create in the config adapter.
      *   This could be a filename or a cache key depending on the adapter being used.

+ 3 - 3
src/Core/README.md

@@ -19,14 +19,14 @@ It also possible to load configuration from external files:
 
 ```php
 Configure::config('default', new PhpConfig('/path/to/config/folder'));
-Configure::load('app.php', 'default', false);
-Configure::load('other_config.php', 'default');
+Configure::load('app', 'default', false);
+Configure::load('other_config', 'default');
 ```
 
 And Write the configuration back into files:
 
 ```php
-Configure::dump('my_config.php', 'default');
+Configure::dump('my_config', 'default');
 ```
 
 ## Documentation