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

Set autowiring types on services with many alternatives like encoder #257

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</service>
<service id="lexik_jwt_authentication.encoder.default" parent="lexik_jwt_authentication.encoder.abstract">
<argument type="service" id="lexik_jwt_authentication.jws_provider.default"/>
<autowiring-type>Lexik\Bundle\JWTAuthenticationBundle\Encoder\JWTEncoderInterface</autowiring-type>
</service>
<!-- Lcobucci/JWT Encoder / Decoder -->
<service id="lexik_jwt_authentication.encoder.lcobucci" parent="lexik_jwt_authentication.encoder.abstract">
Expand All @@ -29,6 +30,7 @@
<argument>%lexik_jwt_authentication.encoder.crypto_engine%</argument>
<argument>%lexik_jwt_authentication.encoder.signature_algorithm%</argument>
<argument>%lexik_jwt_authentication.token_ttl%</argument>
<autowiring-type>Lexik\Bundle\JWTAuthenticationBundle\Services\JWSProvider\JWSProviderInterface</autowiring-type>
</service>
<!-- Lcobucci/JWT JWS Provider -->
<service id="lexik_jwt_authentication.jws_provider.lcobucci" class="Lexik\Bundle\JWTAuthenticationBundle\Services\JWSProvider\LcobucciJWSProvider" public="false">
Expand All @@ -37,7 +39,6 @@
<argument>%lexik_jwt_authentication.encoder.signature_algorithm%</argument>
<argument>%lexik_jwt_authentication.token_ttl%</argument>
</service>

<!-- Abstract JWT Token Authenticator / Guard implementation -->
<service id="lexik_jwt_authentication.security.guard.jwt_token_authenticator" class="Lexik\Bundle\JWTAuthenticationBundle\Security\Guard\JWTTokenAuthenticator" abstract="true">
<argument type="service" id="lexik_jwt_authentication.jwt_manager"/>
Expand All @@ -46,7 +47,6 @@
</service>
<!-- Default JWT Token Authenticator -->
<service id="lexik_jwt_authentication.jwt_token_authenticator" parent="lexik_jwt_authentication.security.guard.jwt_token_authenticator" />

<!-- JWT Authentication response interceptor -->
<service id="lexik_jwt_authentication.handler.authentication_success" class="Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationSuccessHandler">
<argument type="service" id="lexik_jwt_authentication.jwt_manager"/>
Expand All @@ -57,7 +57,6 @@
<tag name="monolog.logger" channel="security" />
<argument type="service" id="event_dispatcher"/>
</service>

<!-- Key Loaders -->
<service id="lexik_jwt_authentication.key_loader.abstract" abstract="true" public="false">
<argument>%lexik_jwt_authentication.private_key_path%</argument>
Expand Down Expand Up @@ -94,6 +93,7 @@
<!-- Chain Token Extractor -->
<service id="lexik_jwt_authentication.extractor.chain_extractor" class="Lexik\Bundle\JWTAuthenticationBundle\TokenExtractor\ChainTokenExtractor" public="false">
<argument type="collection" />
<autowiring-type>Lexik\Bundle\JWTAuthenticationBundle\TokenExtractor\TokenExtractorInterface</autowiring-type>
</service>
<!-- Authorization Header Token Extractor -->
<service id="lexik_jwt_authentication.extractor.authorization_header_extractor" class="Lexik\Bundle\JWTAuthenticationBundle\TokenExtractor\AuthorizationHeaderTokenExtractor">
Expand Down