Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yosymfony committed Jan 28, 2015
1 parent 5204126 commit 95fae46
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class MyClass

```php
$config->load('user.yml');

// or load with absolute path:
$config->load('/var/config/user1.yml');
```
Expand All @@ -71,6 +70,36 @@ $repository = $config->load('server: "mail.yourname.com"', Config::TYPE_YAML);
// or
$repository = $config->load('server = "mail.yourname.com"', Config::TYPE_TOML);
```
### Importing files

This library has support for importing files as Symfony’s Dependency Injection component does.
In the below example a YAML file imports three files:

```yaml
---
imports:
- config-imported.yml
- config-imported.toml
- config-imported.json
```
Similar example using JSON:
```json
{
"imports": [
"config.json"
]
}
```

Example using TOML:

```
imports = [
"config.toml"
]
```

Repository
----------
Expand Down

0 comments on commit 95fae46

Please sign in to comment.