Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing autowire parameter #1060

Merged
merged 1 commit into from
Nov 9, 2020
Merged

Missing autowire parameter #1060

merged 1 commit into from
Nov 9, 2020

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Nov 9, 2020

With the given configuration, Symfony is not able to instantiate the custom provider as it requires a Generator to be injected.
The Generator objects comes from the constructor of Faker\Provider\Base.

This PR makes it clear that autowire should be enabled or that the Faker\Generator service should be passed as constructor argument.

With the given configuration, Symfony is not able to instantiate the custom provider as it requires a Generator to be injected.
The Generator objects comes from the constructor of `Faker\Provider\Base`.

This PR makes it clear that `autowire` should be enabled or that the `Faker\Generator` service should be passed as constructor argument.
@theofidry
Copy link
Member

Thank you @Spomky

@theofidry theofidry merged commit 247768f into nelmio:master Nov 9, 2020
@Spomky Spomky deleted the patch-1 branch November 9, 2020 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants