We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8482d29 commit 851c908Copy full SHA for 851c908
docs/VOM.md
@@ -598,6 +598,13 @@ $factory = new \Zolex\VOM\Metadata\Factory\ModelMetadataFactory(/*...*/);
598
$factory->injectDenormalizerDependency(new \Some\Dependency());
599
```
600
601
+If you are using the `VersatileObjectMapperFactory` you can pass the dependencies to the `create` method.
602
+
603
+```php
604
+$vom = VersatileObjectMapperFactory::create(null, [new DependencyA(), new DependencyB()]);
605
+```
606
607
608
##### Non-Scalar Denormalizer Arguments
609
610
To prevent unnecessary usage of denormalizers when dealing with arrays, the denormalizer methods only accept scalar arguments by default.
0 commit comments