acquia_commercemanager-8.x-1.122/modules/acm/acm.services.yml

modules/acm/acm.services.yml
services:
  acm.client_factory:
    class: Drupal\acm\Connector\ClientFactory
    arguments: ['@http_client_factory', '@config.factory', '@acm.i18n_helper']

  acm.api_helper:
    class: Drupal\acm\APIHelper

  acm.agent_api:
    class: Drupal\acm\Connector\APIWrapper
    arguments:
      - '@acm.client_factory'
      - '@config.factory'
      - '@logger.factory'
      - '@acm.i18n_helper'
      - '@acm.api_helper'

  acm.ingest_api:
    class: Drupal\acm\Connector\IngestAPIWrapper
    arguments: ['@acm.client_factory', '@config.factory', '@logger.factory', '@acm.i18n_helper']

  acm.test_agent_api:
    class: Drupal\acm\Connector\TestAPIWrapper
    arguments: ['@acm.client_factory', '@config.factory', '@logger.factory', '@acm.i18n_helper']

  acm.api_wrapper_factory:
    class: Drupal\acm\Connector\APIWrapperFactory
    arguments: ['@service_container']

  acm.api:
    class: Drupal\acm\Connector\APIWrapperInterface
    factory: acm.api_wrapper_factory:get
    arguments: ['@service_container']

  acm.i18n_helper:
    class: Drupal\acm\I18nHelper
    arguments: ['@config.factory', '@language_manager']

  acm.php_session_store:
    class: Drupal\acm\PhpSessionStore
    arguments: ['@session']

  acm.database_session_store:
    class: Drupal\acm\DatabaseSessionStoreFactory
    arguments: ['@keyvalue.expirable', '@lock.persistent', '@acm.commerce_user_manager', '@request_stack', '%acm.store.expire%']

  acm.session_store_factory:
    class: Drupal\acm\SessionStoreFactory
    arguments: ['@service_container']

  acm.session_storage:
    class: Drupal\acm\SessionStoreInterface
    factory: acm.session_store_factory:get
    arguments: ['@service_container']

  acm.commerce_account_proxy_factory:
    class: Drupal\acm\User\CommerceAccountProxyFactory
    arguments: ['@service_container']

  acm.commerce_account_proxy:
    class: Drupal\acm\User\CommerceAccountProxy
    arguments: ['@acm.api']

  acm.external_commerce_account_proxy:
    class: Drupal\acm\User\ExternalCommerceAccountProxy
    arguments: ['@acm.api']

  acm.current_user:
    class: Drupal\Core\Session\AccountProxyInterface
    factory: acm.commerce_account_proxy_factory:get
    arguments: ['@service_container']

  acm.commerce_user_manager:
    class: Drupal\acm\User\CommerceUserManager
    arguments: ['@cache.commerce_user', '@acm.current_user']

  acm.route_subscriber:
    class: Drupal\acm\Routing\CommerceUserRoutes
    arguments: ['@config.factory']

  acm.auth:
    class: Drupal\acm\User\CommerceUserAuth
    arguments: ['@acm.api']

  acm.acm_address_twig:
    class: Drupal\acm\ACMAddressTwigExtension
    tags:
      - { name: twig.extension }

  access_check.acm.login_status:
    class: Drupal\acm\Access\LoginStatusCheck
    arguments: ['@acm.commerce_user_manager']
    tags:
      - { name: access_check, applies_to: _commerce_user_is_logged_in }

  cache.commerce_user:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin, default_backend: cache.backend.permanent_database }
    factory: cache_factory:get
    arguments: [commerce_user]

  acm.version_access_checker:
    class: Drupal\acm\Access\VersionAccessCheck
    arguments: ['@current_user', '@config.factory']
    tags:
      - { name: access_check, applies_to: _version_access_check }

  repository.currency:
    class: CommerceGuys\Intl\Currency\CurrencyRepository

  repository.number_format:
    class: CommerceGuys\Intl\NumberFormat\NumberFormatRepository

  plugin.manager.acm_dashboard_item:
    class: Drupal\acm\CommerceDashboardItemManager
    parent: default_plugin_manager

  acm.verify_mapping:
    class: Drupal\acm\VerifyMapping
    arguments:
      - '@logger.factory'
      - '@acm.i18n_helper'
      - '@config.factory'
      - '@language_manager'

parameters:
  acm.store.expire: 2000000

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc