Skip to content

Commit

Permalink
Update docblocks and readme to not use the file extension in load() a…
Browse files Browse the repository at this point in the history
…nd dump()
  • Loading branch information
ceeram committed Jan 20, 2015
1 parent 317e9c5 commit 9633d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Core/Configure.php
Expand Up @@ -279,11 +279,11 @@ public static function load($key, $config = 'default', $merge = true)
* 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.
Expand Down
6 changes: 3 additions & 3 deletions src/Core/README.md
Expand Up @@ -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
Expand Down

0 comments on commit 9633d64

Please sign in to comment.