Skip to content

Commit c4cec7e

Browse files
committed
Fixed README
1 parent 8972465 commit c4cec7e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,14 @@ $configurator->addConfig(__DIR__ . '/config/config.xml', Nette\Config\Configurat
130130
### How to convert neon config file to xml config file
131131

132132
```php
133+
require __DIR__ . '/vendor/autoload.php';
133134
use Nette\DI\Config\Adapters\NeonAdapter;
134135
use Sallyx\Nette\DI\Config\Adapters\XmlAdapter;
135136

136-
$na = NeonAdapter;
137-
$xa = XmlAdapter;
137+
$na = new NeonAdapter;
138+
$xa = new XmlAdapter;
138139
$config = $na->load('config.neon');
139-
$xmlConfig = $xmlloader->dump($config);
140+
$xmlConfig = $xa->dump($config);
140141
// pretty output
141142
$domxml = new DOMDocument('1.0');
142143
$domxml->preserveWhiteSpace = false;

0 commit comments

Comments
 (0)