imports:
  - { resource: parameters.yml }
  - { resource: common/handler.yml }

services:
  ps_eventbus.db:
    class: Db
    public: true
    factory: ['Db', 'getInstance']

  ps_eventbus:
    class: 'Ps_eventbus'
    public: true
    factory: ['Module', 'getInstanceByName']
    arguments:
      - 'ps_eventbus'
  
  ps_eventbus.helper.module:
    class: 'PrestaShop\Module\PsEventbus\Helper\ModuleHelper'
    public: true

  PrestaShop\Module\PsEventbus\Service\PsAccountsAdapterService:
    class: PrestaShop\Module\PsEventbus\Service\PsAccountsAdapterService
    public: true
    arguments: 
      - '@ps_eventbus.helper.module'


