Skip to content

Commit

Permalink
Remove duplicate part from usage.md (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtramp-neusta authored Sep 11, 2024
1 parent 91a1da3 commit a68e6ea
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,27 +91,6 @@ neusta_converter:
# additional populators may follow
```

To put things together, register the populator as services:

```yaml
# config/services.yaml
services:
YourNamespace\PersonNamePopulator: ~
```
And then declare the following converter in your package config:
```yaml
# config/packages/neusta_converter.yaml
neusta_converter:
converter:
person.converter:
target: YourNamespace\Person
populators:
- YourNamespace\PersonNamePopulator
# additional populators may follow
```

> [!TIP]
> You can use a custom implementation of the `Converter` interface via the `converter` keyword.
> Its constructor *must* contain *exactly* the two parameters `TargetFactory $factory` and `array $populators`.
Expand Down

0 comments on commit a68e6ea

Please sign in to comment.