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/ImportBundle | |
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/ImportBundle')
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/config/services.yml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml index 89adc71b..d600be0f 100644 --- a/src/Wallabag/ImportBundle/Resources/config/services.yml +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml | |||
@@ -20,7 +20,6 @@ services: | |||
20 | arguments: | 20 | arguments: |
21 | - "@doctrine.orm.entity_manager" | 21 | - "@doctrine.orm.entity_manager" |
22 | - "@wallabag_core.content_proxy" | 22 | - "@wallabag_core.content_proxy" |
23 | - "@craue_config" | ||
24 | calls: | 23 | calls: |
25 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | 24 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] |
26 | - [ setLogger, [ "@logger" ]] | 25 | - [ setLogger, [ "@logger" ]] |