parameters:

services:
  happyr.loco.translation.loader:
    class: Happyr\LocoBundle\Translation\Loader
    tags:
      - { name: 'translation.loader', alias: 'phps' }

  happyr.loco.translation.dumper:
    class: Happyr\LocoBundle\Translation\Dumper
    tags:
      - { name: 'translation.dumper', alias: 'phps' }

  # Custom data_collector to use our own template
  happyr.loco.data_collector.translation:
    class: Symfony\Component\Translation\DataCollector\TranslationDataCollector
    arguments: [ @translator.data_collector ]
    tags:
      - { name: 'data_collector', template: "@HappyrLoco/Profiler/translation", id: "translation", priority: 200 }

  happyr.loco:
    class: Happyr\LocoBundle\Service\Loco
    arguments:
      - @happyr.loco.http_adapter
      - @happyr.loco.filesystem
      - ~
      - ~

  happyr.loco.filesystem:
    class: Happyr\LocoBundle\Service\FilesystemUpdater
    public: false
    lazy: true
    arguments:
      - @happyr.loco.translation.loader
      - @happyr.loco.translation.dumper
      - ~

  happyr.loco.http_adapter.guzzle5:
    class: Happyr\LocoBundle\Http\Guzzle5Adapter
    public: false

  happyr.loco.http_adapter.guzzle6:
    class: Happyr\LocoBundle\Http\Guzzle6Adapter
    public: false

parameters:

services:
  happyr.loco.translation.loader:
    class: Happyr\LocoBundle\Translation\Loader
    tags:
      - { name: 'translation.loader', alias: 'phps' }

  happyr.loco.translation.dumper:
    class: Happyr\LocoBundle\Translation\Dumper
    tags:
      - { name: 'translation.dumper', alias: 'phps' }

  # Custom data_collector to use our own template
  happyr.loco.data_collector.translation:
    class: Symfony\Component\Translation\DataCollector\TranslationDataCollector
    arguments: [ @?translator.data_collector ]
    tags:
      - { name: 'data_collector', template: "@HappyrLoco/Profiler/translation", id: "translation", priority: 200 }

  happyr.loco:
    class: Happyr\LocoBundle\Service\Loco
    arguments:
      - @happyr.loco.http_adapter
      - @happyr.loco.filesystem
      - ~
      - ~

  happyr.loco.filesystem:
    class: Happyr\LocoBundle\Service\FilesystemUpdater
    public: false
    lazy: true
    arguments:
      - @happyr.loco.translation.loader
      - @happyr.loco.translation.dumper
      - ~

  happyr.loco.http_adapter.guzzle5:
    class: Happyr\LocoBundle\Http\Guzzle5Adapter
    public: false

  happyr.loco.http_adapter.guzzle6:
    class: Happyr\LocoBundle\Http\Guzzle6Adapter
    public: false

Make sure you specify dependency as optional
Make sure you specify dependency as optional
