forked from wallabag/wallabag
Inject parameter instead of service
We are injecting CraueConfig service when we only need to retrieve one or two values from it. Instead I discovered we can directly inject a value from a service in the service definition!
This commit is contained in:
@ -6,7 +6,8 @@ services:
|
||||
- "@twig"
|
||||
- "%scheb_two_factor.email.sender_email%"
|
||||
- "%scheb_two_factor.email.sender_name%"
|
||||
- "@craue_config"
|
||||
- '@=service(''craue_config'').get(''wallabag_support_url'')'
|
||||
- '@=service(''craue_config'').get(''wallabag_url'')'
|
||||
|
||||
wallabag_user.password_resetting:
|
||||
class: Wallabag\UserBundle\EventListener\PasswordResettingListener
|
||||
|
||||
Reference in New Issue
Block a user