166 lines
5.7 KiB
YAML
166 lines
5.7 KiB
YAML
services:
|
|
ps_accounts.module:
|
|
class: Ps_accounts
|
|
public: true
|
|
factory: ['Module', 'getInstanceByName']
|
|
arguments:
|
|
- 'ps_accounts'
|
|
|
|
ps_accounts.context:
|
|
class: Context
|
|
public: true
|
|
factory: [ 'Context', 'getContext' ]
|
|
|
|
ps_accounts.logger:
|
|
class: Context
|
|
public: true
|
|
factory: [ 'PrestaShop\Module\PsAccounts\Factory\PsAccountsLogger', 'create' ]
|
|
|
|
PrestaShop\Module\PsAccounts\Context\ShopContext:
|
|
class: PrestaShop\Module\PsAccounts\Context\ShopContext
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\UserTokenRepository'
|
|
- '@ps_accounts.context'
|
|
|
|
PrestaShop\Module\PsAccounts\Adapter\Configuration:
|
|
class: PrestaShop\Module\PsAccounts\Adapter\Configuration
|
|
public: true
|
|
arguments:
|
|
- '@ps_accounts.context'
|
|
|
|
PrestaShop\Module\PsAccounts\Adapter\Link:
|
|
class: PrestaShop\Module\PsAccounts\Adapter\Link
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Context\ShopContext'
|
|
|
|
#####################
|
|
# installer
|
|
|
|
PrestaShop\Module\PsAccounts\Installer\Installer:
|
|
class: PrestaShop\Module\PsAccounts\Installer\Installer
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Context\ShopContext'
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Link'
|
|
|
|
#####################
|
|
# services
|
|
|
|
PrestaShop\Module\PsAccounts\Service\PsAccountsService:
|
|
class: PrestaShop\Module\PsAccounts\Service\PsAccountsService
|
|
public: true
|
|
arguments:
|
|
- '@ps_accounts.module'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ShopTokenRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\UserTokenRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Link'
|
|
|
|
PrestaShop\Module\PsAccounts\Service\ShopLinkAccountService:
|
|
class: PrestaShop\Module\PsAccounts\Service\ShopLinkAccountService
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Provider\RsaKeysProvider'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ShopTokenRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\UserTokenRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Link'
|
|
|
|
PrestaShop\Module\PsAccounts\Service\PsBillingService:
|
|
class: PrestaShop\Module\PsAccounts\Service\PsBillingService
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Api\Client\ServicesBillingClient'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ShopTokenRepository'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
|
|
#####################
|
|
# providers
|
|
|
|
PrestaShop\Module\PsAccounts\Provider\ShopProvider:
|
|
class: PrestaShop\Module\PsAccounts\Provider\ShopProvider
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Context\ShopContext'
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Link'
|
|
|
|
PrestaShop\Module\PsAccounts\Provider\RsaKeysProvider:
|
|
class: PrestaShop\Module\PsAccounts\Provider\RsaKeysProvider
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
|
|
#####################
|
|
# handlers
|
|
|
|
PrestaShop\Module\PsAccounts\Handler\Error\Sentry:
|
|
class: PrestaShop\Module\PsAccounts\Handler\Error\Sentry
|
|
public: true
|
|
arguments:
|
|
- '%ps_accounts.sentry_credentials%'
|
|
- '%ps_accounts.environment%'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
|
|
###############
|
|
# api clients
|
|
|
|
PrestaShop\Module\PsAccounts\Api\Client\AccountsClient:
|
|
class: PrestaShop\Module\PsAccounts\Api\Client\AccountsClient
|
|
public: true
|
|
arguments:
|
|
- '%ps_accounts.accounts_api_url%'
|
|
- '@PrestaShop\Module\PsAccounts\Provider\ShopProvider'
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Link'
|
|
|
|
PrestaShop\Module\PsAccounts\Api\Client\SsoClient:
|
|
class: PrestaShop\Module\PsAccounts\Api\Client\SsoClient
|
|
public: true
|
|
arguments:
|
|
- '%ps_accounts.sso_api_url%'
|
|
|
|
PrestaShop\Module\PsAccounts\Api\Client\ServicesBillingClient:
|
|
class: PrestaShop\Module\PsAccounts\Api\Client\ServicesBillingClient
|
|
public: true
|
|
arguments:
|
|
- '%ps_accounts.billing_api_url%'
|
|
- '@PrestaShop\Module\PsAccounts\Service\PsAccountsService'
|
|
- '@PrestaShop\Module\PsAccounts\Provider\ShopProvider'
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Link'
|
|
|
|
#####################
|
|
# repositories
|
|
|
|
PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository:
|
|
class: PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Adapter\Configuration'
|
|
|
|
PrestaShop\Module\PsAccounts\Repository\ShopTokenRepository:
|
|
class: PrestaShop\Module\PsAccounts\Repository\ShopTokenRepository
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
|
|
PrestaShop\Module\PsAccounts\Repository\UserTokenRepository:
|
|
class: PrestaShop\Module\PsAccounts\Repository\UserTokenRepository
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
|
|
#####################
|
|
# presenters
|
|
|
|
PrestaShop\Module\PsAccounts\Presenter\PsAccountsPresenter:
|
|
class: PrestaShop\Module\PsAccounts\Presenter\PsAccountsPresenter
|
|
public: true
|
|
arguments:
|
|
- '@PrestaShop\Module\PsAccounts\Service\PsAccountsService'
|
|
- '@PrestaShop\Module\PsAccounts\Provider\ShopProvider'
|
|
- '@PrestaShop\Module\PsAccounts\Service\ShopLinkAccountService'
|
|
- '@PrestaShop\Module\PsAccounts\Installer\Installer'
|
|
- '@PrestaShop\Module\PsAccounts\Repository\ConfigurationRepository'
|
|
- '@ps_accounts.module'
|