You are here

key_value.services.yml in Key-value Extensions 8

File

key_value.services.yml
View source
  1. parameters:
  2. factory.keyvalue_list:
  3. default: keyvalue.list.database
  4. factory.keyvalue.sorted_set:
  5. default: keyvalue.sorted_set.database
  6. services:
  7. keyvalue.list:
  8. class: Drupal\key_value\KeyValueStore\KeyValueListFactory
  9. arguments: ['@service_container', '%factory.keyvalue_list%']
  10. keyvalue.list.database:
  11. class: Drupal\key_value\KeyValueStore\KeyValueDatabaseListFactory
  12. arguments: ['@serialization.phpserialize', '@database']
  13. keyvalue.sorted_set:
  14. class: Drupal\key_value\KeyValueStore\KeyValueSortedSetFactory
  15. arguments: ['@service_container', '%factory.keyvalue.sorted_set%']
  16. keyvalue.sorted_set.database:
  17. class: Drupal\key_value\KeyValueStore\KeyValueDatabaseSortedSetFactory
  18. arguments: ['@serialization.phpserialize', '@database']