Skip to content

Commit 9dbd399

Browse files
committed
Add note about how to register providers
1 parent 6580f96 commit 9dbd399

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Resources/doc/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,20 @@ bazinga_geocoder:
117117
priority: 128
118118
```
119119

120+
### Registering Your Own Providers
121+
122+
If you want to use your own provider in your application, create a service,
123+
and tag it as `bazinga_geocoder.provider`:
124+
125+
```xml
126+
<service id="acme_demo.geocoder.my_provider" class="Acme\Demo\Geocoder\Provider\MyProvider">
127+
<tag name="bazinga_geocoder.provider" />
128+
</service>
129+
```
130+
131+
The bundle will automatically register it, into the `bazinga_geocoder.geocoder`
132+
service.
133+
120134
### Dumpers
121135

122136
If you need to dump your geocoded data to a specific format, you can use the

0 commit comments

Comments
 (0)