X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FResources%2Fconfig%2Fservices.yml;h=55348ce7b524c18d097143587567fe03428ced04;hb=d1af8ad4dbf7f3ce5170655c2fa8403406283039;hp=d77779eb1a65883159249866b50da8088078eb17;hpb=0aa344dc247c77376fcbf2112191f9f8b3dfc846;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml index d77779eb..55348ce7 100644 --- a/src/Wallabag/ImportBundle/Resources/config/services.yml +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml @@ -1,8 +1,36 @@ services: + wallabag_import.chain: + class: Wallabag\ImportBundle\Import\ImportChain + + wallabag_import.pocket.client: + class: GuzzleHttp\Client + arguments: + - + defaults: + headers: + content-type: "application/json" + X-Accept: "application/json" + wallabag_import.pocket.import: class: Wallabag\ImportBundle\Import\PocketImport arguments: - "@security.token_storage" - - "@session" - "@doctrine.orm.entity_manager" + - "@wallabag_core.content_proxy" - %pocket_consumer_key% + - "@translator" + calls: + - [ setClient, [ "@wallabag_import.pocket.client" ] ] + - [ setLogger, [ "@logger" ]] + tags: + - { name: wallabag_import.import, alias: pocket } + + wallabag_import.wallabag_v1.import: + class: Wallabag\ImportBundle\Import\WallabagV1Import + arguments: + - "@doctrine.orm.entity_manager" + - "@translator" + calls: + - [ setLogger, [ "@logger" ]] + tags: + - { name: wallabag_import.import, alias: wallabag_v1 }