Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
petr committed Jul 14, 2015
1 parent 07d8d4f commit f7efc42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ in the same xml file.

XmlAdapter reads xml file and convert it to PHP array.

For basic usage example: see [tests/DI/files/xmlAdapter.xml](tests/DI/files/xmlAdapter.xml)
See xml example here: [tests/Adapters/files/xmlAdapter.xml](tests/Adapters/files/xmlAdapter.xml)

## Supported types

Expand Down Expand Up @@ -103,10 +103,10 @@ composer require sallyx/nette-xml-adapter

```php
require 'vendor/autoload.php';
use Sallyx\Nette\DI\Config\Adapter\XmlAdapter;
use Sallyx\Nette\DI\Config\Adapters\XmlAdapter;

$adapter = new XmlAdapter;
$file = 'vendor/sallyx/nette-xml-adapter/tests/DI/files/xmlAdapter.xml';
$file = 'vendor/sallyx/nette-xml-adapter/tests/Adapters/files/xmlAdapter.xml';
$config = $adapter->load($file);
print_r($config);
```
Expand All @@ -120,7 +120,7 @@ $xmlAdapter = new Sallyx\Nette\DI\Config\Adapters\XmlAdapter;
$configurator->addAdapter('xml', $xmlAdapter);
```

And now you can load XML configuration files (alongside with neon files).
And now you can load XML configuration files (alongside with neon files).
For example:

```
Expand Down

0 comments on commit f7efc42

Please sign in to comment.