Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Provide auto-wiring for CodeGeneratorInterface #228
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Aug 7, 2019
1 parent 7cdbc27 commit 8dd92c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Resources/config/two_factor_provider_email.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

<service id="scheb_two_factor.security.email.code_generator" alias="scheb_two_factor.security.email.default_code_generator" />

<!-- Aliases for auto-wiring -->
<service id="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGeneratorInterface" alias="scheb_two_factor.security.email.code_generator" public="true" />

<service id="scheb_two_factor.security.email.form_renderer" class="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\DefaultTwoFactorFormRenderer" lazy="true">
<argument type="service" id="twig" />
<argument>%scheb_two_factor.email.template%</argument>
Expand Down

0 comments on commit 8dd92c3

Please sign in to comment.