Skip to content

Commit ac673da

Browse files
committed
Update example to use the RecursiveDirectoryProvider
1 parent dea347a commit ac673da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The base object for generating models is the *Generator*. After you have created
4848

4949
```php
5050
(new Generator())
51-
->generateModels(__DIR__ . '/schema', __DIR__ . '/result');
51+
->generateModels(new RecursiveDirectoryProvider(__DIR__ . '/schema'), __DIR__ . '/result');
5252
```
5353

5454
As an optional parameter you can set up a *GeneratorConfiguration* object to configure your Generator and/or use the method *generateModelDirectory* to generate your model directory (will generate the directory if it doesn't exist; if it exists, all contained files and folders will be removed for a clean generation process):

0 commit comments

Comments
 (0)