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:
@ -91,7 +91,7 @@ services:
|
||||
wallabag_core.helper.entries_export:
|
||||
class: Wallabag\CoreBundle\Helper\EntriesExport
|
||||
arguments:
|
||||
- "@craue_config"
|
||||
- '@=service(''craue_config'').get(''wallabag_url'')'
|
||||
- src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
|
||||
|
||||
wallabag.operator.array.matches:
|
||||
|
||||
Reference in New Issue
Block a user