---
name: 'addonsinjector'
---
Injector:
  AddonBuilder:
    constructor:
      - %$PackagistService
      - %$SilverStripe\ModuleRatings\CheckSuite
  AddonUpdater:
    constructor:
      - %$PackagistService
      - %$ElasticaService
      - %$Composer\Package\Version\VersionParser
  RequestProcessor:
    properties:
      filters:
        - %$SiteErrorPageFilter
  SilverStripeVersionUpdater:
    constructor:
      - %$PackagistService
  UpdateAddonsTask:
    constructor:
      - %$AddonUpdater
  UpdateSilverStripeVersionsTask:
    constructor:
      - %$SilverStripeVersionUpdater
  BuildAddonsTask:
    constructor:
      - %$AddonBuilder
---
Only:
  environment: 'live'
After:
  - '#elastica'
---
Injector:
  ElasticaService:
    class: SilverStripe\Elastica\ElasticaService
    constructor:
      client: %$ElasticClient
      index: addons
---
Except:
  environment: 'live'
After:
  - '#elastica'
---
Injector:
  ElasticaService:
    class: SilverStripe\Elastica\ElasticaService
    constructor:
      client: %$ElasticClient
      index: addons-dev

---
name: 'addonsinjector'
---
Injector:
  AddonBuilder:
    constructor:
      - %$PackagistService
      - %$SilverStripe\ModuleRatings\CheckSuite
  SilverStripe\ModuleRatings\CheckSuite:
    type: prototype
  AddonUpdater:
    constructor:
      - %$PackagistService
      - %$ElasticaService
      - %$Composer\Package\Version\VersionParser
  RequestProcessor:
    properties:
      filters:
        - %$SiteErrorPageFilter
  SilverStripeVersionUpdater:
    constructor:
      - %$PackagistService
  UpdateAddonsTask:
    constructor:
      - %$AddonUpdater
  UpdateSilverStripeVersionsTask:
    constructor:
      - %$SilverStripeVersionUpdater
  BuildAddonsTask:
    constructor:
      - %$AddonBuilder
---
Only:
  environment: 'live'
After:
  - '#elastica'
---
Injector:
  ElasticaService:
    class: SilverStripe\Elastica\ElasticaService
    constructor:
      client: %$ElasticClient
      index: addons
---
Except:
  environment: 'live'
After:
  - '#elastica'
---
Injector:
  ElasticaService:
    class: SilverStripe\Elastica\ElasticaService
    constructor:
      client: %$ElasticClient
      index: addons-dev

FIX Instantiate CheckSuite as prototype rather than singleton
FIX Instantiate CheckSuite as prototype rather than singleton
