---
Name: twitterconfig
---
SilverStripe\Core\Injector:
  TractorCow\Twitter\Services\TwitterService:
    class: TractorCow\Twitter\Services\CachedTwitterService
    constructor:
      - %$WebTwitterService
  TractorCow\Twitter\Services\WebTwitterService:
    class: TractorCow\Twitter\Services\TwitterService
  Psr\SimpleCache\CacheInterface.cachedTwitterService:
    factory: SilverStripe\Core\Cache\CacheFactory
    constructor:
      namespace: 'cachedTwitterService'
TractorCow\Twitter\Extensions\TwitterExtension:
  dependencies:
    TwitterService: %$TractorCow\Twitter\Services\TwitterService
PageController:
  extensions:
    - TractorCow\Twitter\Extensions\TwitterExtension
SilverStripe\SiteConfig\SiteConfig:
  extensions:
    - TractorCow\Twitter\Extensions\TwitterSiteConfig
TractorCow\Twitter\Services\CachedTwitterService:
# Lifetime in seconds of cache
  lifetime: 300
