Skip to content

Commit

Permalink
docs: Fix provider service tag (#178)
Browse files Browse the repository at this point in the history
Fixed a typo in the docs that was made unable to use custom providers.
  • Loading branch information
Korbeil authored Aug 3, 2024
2 parents 4ba0372 + c079aab commit e782a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mapping/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $autoMapper = AutoMapper::create(providers: [new MyProvider()]);
```

> [!NOTE]
> When using the Symfony Bundle version of the AutoMapper, you can use the `auto_mapper.provider` tag to register the provider.
> When using the Symfony Bundle version of the AutoMapper, you can use the `automapper.provider` tag to register the provider.
> If you have autoconfiguration enabled, you do not need to register the provider manually as the tag will be automatically added.
Then you can use the `#[MapProvider]` attribute on top of the `target` class that you want to use this provider.
Expand Down

0 comments on commit e782a9c

Please sign in to comment.