coveo-1.0.0-alpha1/coveo.services.yml

coveo.services.yml
services:
  coveo.default_hooks:
    class: \Drupal\coveo\Hook\CoveoHooks
  Drupal\coveo\Hook\CoveoHooks: '@coveo.default_hooks'

  logger.channel.coveo:
    parent: logger.channel_base
    arguments: ['coveo']

  plugin.manager.coveo_security_provider:
    class: \Drupal\coveo\Plugin\CoveoSecurityProviderManager
    parent: default_plugin_manager
  Drupal\coveo\Plugin\CoveoSecurityProviderManagerInterface: '@plugin.manager.coveo_security_provider'

  coveo.index_helper_factory:
    class: Drupal\coveo\Coveo\IndexHelperFactory
    arguments:
      - '@coveo.rest.client'
      - '@event_dispatcher'
      - '@logger.channel.coveo'

  # -------------------------------------------------------------------------------------------------------------------
  # API Services.
  # -------------------------------------------------------------------------------------------------------------------

  # Helper to manage injection since entity service injection doesn't work.
  coveo.org_api_helper:
    class: Drupal\coveo\API\OrganizationApiHelper
    arguments:
      - '@coveo.rest.field_api_factory'
      - '@coveo.rest.push_api_factory'
      - '@coveo.rest.security_cache_factory'

  # HTTP client used for API services.
  coveo.rest.client:
    class: GuzzleHttp\Client

  # Push API Factory.
  coveo.rest.push_api_factory:
    class: Drupal\coveo\API\PushApiFactory
    arguments: ['@coveo.rest.client']

  # Field API Factory.
  coveo.rest.field_api_factory:
    class: Drupal\coveo\API\FieldApiFactory
    arguments: ['@coveo.rest.client']

  # Search API Factory.
  coveo.rest.search_api_factory:
    class: Drupal\coveo\API\SearchApiFactory
    arguments: ['@coveo.rest.client']

  # Security Cache/Provider API Factory.
  coveo.rest.security_cache_factory:
    class: Drupal\coveo\API\SecurityCacheFactory
    arguments: ['@coveo.rest.client']

  # Source APIs Factory.
  coveo.rest.source_api_factory:
    class: Drupal\coveo\API\SourceApiFactory
    arguments: ['@coveo.rest.client']

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

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