aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/config/services.yml
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-30 20:27:41 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-30 20:27:41 +0100
commit4b3c983ab85af2ab09540c4849a9e65843a7ab67 (patch)
tree83fcdb3959cdd8735fee1f4d7520bf8db8709131 /src/Wallabag/CoreBundle/Resources/config/services.yml
parentf74061f1e1e70f8f1ec1fb72f7cf6e1ed388023c (diff)
downloadwallabag-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/CoreBundle/Resources/config/services.yml')
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml
index 614488a6..b7b1b61b 100644
--- a/src/Wallabag/CoreBundle/Resources/config/services.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/services.yml
@@ -91,7 +91,7 @@ services:
91 wallabag_core.helper.entries_export: 91 wallabag_core.helper.entries_export:
92 class: Wallabag\CoreBundle\Helper\EntriesExport 92 class: Wallabag\CoreBundle\Helper\EntriesExport
93 arguments: 93 arguments:
94 - "@craue_config" 94 - '@=service(''craue_config'').get(''wallabag_url'')'
95 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png 95 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
96 96
97 wallabag.operator.array.matches: 97 wallabag.operator.array.matches: