Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
sallyx committed Mar 28, 2016
1 parent 8972465 commit c4cec7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,14 @@ $configurator->addConfig(__DIR__ . '/config/config.xml', Nette\Config\Configurat
### How to convert neon config file to xml config file

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

$na = NeonAdapter;
$xa = XmlAdapter;
$na = new NeonAdapter;
$xa = new XmlAdapter;
$config = $na->load('config.neon');
$xmlConfig = $xmlloader->dump($config);
$xmlConfig = $xa->dump($config);
// pretty output
$domxml = new DOMDocument('1.0');
$domxml->preserveWhiteSpace = false;
Expand Down

0 comments on commit c4cec7e

Please sign in to comment.