Orm:
  doctrine_prod:
    type: Orm\Doctrine
    options:
      debug: false
      dbal: main_connexion
      cache:
        query:
          service: Cache\array_cache
        result:
          service: Cache\array_cache
        metadata:
          service: Cache\array_cache

Log:
  query_logger:
    type: Log\Doctrine\Monolog
    options:
      output: json
      channel: query-logger
      handler: rotate
      max_day: 2
      filename: doctrine-query.log
  sql_logger:
    type: Log\Doctrine\Phpecho

Cache:
  array_cache:
    type: Cache\ArrayCache
  memcache_cache:
    type: Cache\MemcacheCache
    options:
      host: memcache-host
      port: 21211
  apc_cache:
    type: Cache\ApcCache
  xcache_cache:
    type: Cache\XcacheCache
  wincache_cache:
    type: Cache\WinCacheCache

Border:
  #Define Border service
  #The border service handles checks validation constraints against incoming files
  border_manager:
    type: Border\BorderManager
    options:
      #Enable validation on incoming files
      enabled: false
      checkers:
        #Check for duplicated file based on their sha256 check sum
        -
          type: Checker\Sha256
          enabled: true
        #Check for duplicated file based on their UUID
        -
          type: Checker\UUID
          enabled: true
        #Check colorspace (if applicable)
        -
          type: Checker\Colorspace
          enabled: false
          options:
            colorspaces: [cmyk, grayscale, rgb]
        #Check file dimension (if applicable)
        -
          type: Checker\Dimension
          enabled: false
          options:
            width: 80
            height: 160
        #Check file extension
        #set to false to enable all file extensions
        -
          type: Checker\Extension
          enabled: false
          options:
            extensions: [jpg, jpeg, bmp, tif, gif, png, pdf, doc, odt, mpg, mpeg, mov, avi, xls, flv, mp3, mp2]
        #Check filename
        -
          type: Checker\Filename
          enabled: false
          options:
            sensitive: true
        #Check media type
        #Set to false to enable all mediatype
        -
          type: Checker\MediaType
          enabled: false
          options:
            mediatypes: [Audio, Document, Flash, Image, Video]
TaskManager:
  task_manager:
    type: TaskManager\TaskManager
    options:
      # set the threshold for sending task logs to syslog or by mail
      # values : task_abstract::[LOG_DEBUG | LOG_INFO | LOG_WARNING | LOG_ERROR | LOG_CRITICAL | LOG_ALERT]
      #syslog_level: task_abstract::LOG_ERROR
      #maillog_level: task_abstract::LOG_ERROR
