Skip to content

Commit

Permalink
Missing autowire parameter (nelmio#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky authored Nov 9, 2020
1 parent ce57713 commit 247768f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/customizing-data-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,14 @@ the `NativeLoader::createFakerGenerator()` method.

If you are using Symfony, custom Faker providers are registered by adding the
tag `nelmio_alice.faker.provider` to the services. Note that this is automatically
done if your service extends `Faker\Provider\Base` and have `autoconfigure` enabled:
done if your service extends `Faker\Provider\Base` and have `autoconfigure` and `autowire` enabled:

```yaml
# config/services.yaml
services:
_defaults:
autowire: true
autoconfigure: true
App\Faker\Provider\JobProvider: ~
Expand All @@ -213,6 +214,8 @@ or:
services:
App\Faker\Provider\JobProvider:
arguments:
- '@Faker\Generator'
tags: [ { name: nelmio_alice.faker.provider } ]
```

Expand Down

0 comments on commit 247768f

Please sign in to comment.