You are here

cleaner.services.yml in Cleaner 8.2

Same filename and directory in other branches
  1. 8 cleaner.services.yml

File

cleaner.services.yml
View source
  1. services:
  2. # Cache clearing subscriber.
  3. cleaner.cache_clear_subscriber:
  4. class: Drupal\cleaner\EventSubscriber\CleanerCacheClearEventSubscriber
  5. tags:
  6. - { name: 'event_subscriber' }
  7. arguments:
  8. - '@database'
  9. - '@config.factory'
  10. - '@cache.discovery'
  11. - '@logger.factory'
  12. # Additional tables clearing subscriber.
  13. cleaner.tables_clear_subscriber:
  14. class: Drupal\cleaner\EventSubscriber\CleanerTablesClearEventSubscriber
  15. tags:
  16. - { name: 'event_subscriber' }
  17. arguments:
  18. - '@database'
  19. - '@config.factory'
  20. - '@logger.factory'
  21. # MySQL optimization subscriber.
  22. cleaner.mysql_optimization_subscriber:
  23. class: Drupal\cleaner\EventSubscriber\CleanerMysqlOptimizeEventSubscriber
  24. tags:
  25. - { name: 'event_subscriber' }
  26. arguments:
  27. - '@database'
  28. - '@config.factory'
  29. - '@logger.factory'
  30. # Old sessions clearing subscriber.
  31. cleaner.session_clear_subscriber:
  32. class: Drupal\cleaner\EventSubscriber\CleanerSessionClearEventSubscriber
  33. tags:
  34. - { name: 'event_subscriber' }
  35. arguments:
  36. - '@database'
  37. - '@config.factory'
  38. - '@logger.factory'
  39. - '@datetime.time'
  40. # Watchdog logs clearing subscriber.
  41. cleaner.watchdog_clear_subscriber:
  42. class: Drupal\cleaner\EventSubscriber\CleanerWatchdogClearEventSubscriber
  43. tags:
  44. - { name: 'event_subscriber' }
  45. arguments:
  46. - '@database'
  47. - '@config.factory'
  48. - '@logger.factory'