diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-30 20:27:41 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-30 20:27:41 +0100 |
commit | 4b3c983ab85af2ab09540c4849a9e65843a7ab67 (patch) | |
tree | 83fcdb3959cdd8735fee1f4d7520bf8db8709131 /src/Wallabag/UserBundle/Resources/config | |
parent | f74061f1e1e70f8f1ec1fb72f7cf6e1ed388023c (diff) | |
download | wallabag-4b3c983ab85af2ab09540c4849a9e65843a7ab67.tar.gz wallabag-4b3c983ab85af2ab09540c4849a9e65843a7ab67.tar.zst wallabag-4b3c983ab85af2ab09540c4849a9e65843a7ab67.zip |
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!
Diffstat (limited to 'src/Wallabag/UserBundle/Resources/config')
-rw-r--r-- | src/Wallabag/UserBundle/Resources/config/services.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/UserBundle/Resources/config/services.yml b/src/Wallabag/UserBundle/Resources/config/services.yml index eb9c8e67..a8ee721b 100644 --- a/src/Wallabag/UserBundle/Resources/config/services.yml +++ b/src/Wallabag/UserBundle/Resources/config/services.yml | |||
@@ -6,7 +6,8 @@ services: | |||
6 | - "@twig" | 6 | - "@twig" |
7 | - "%scheb_two_factor.email.sender_email%" | 7 | - "%scheb_two_factor.email.sender_email%" |
8 | - "%scheb_two_factor.email.sender_name%" | 8 | - "%scheb_two_factor.email.sender_name%" |
9 | - "@craue_config" | 9 | - '@=service(''craue_config'').get(''wallabag_support_url'')' |
10 | - '@=service(''craue_config'').get(''wallabag_url'')' | ||
10 | 11 | ||
11 | wallabag_user.password_resetting: | 12 | wallabag_user.password_resetting: |
12 | class: Wallabag\UserBundle\EventListener\PasswordResettingListener | 13 | class: Wallabag\UserBundle\EventListener\PasswordResettingListener |