Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 689 Bytes

cleaner.md

File metadata and controls

16 lines (13 loc) · 689 Bytes

Cleaner

A cleaner takes care about the clean-up process. It basically deletes or unpublishes the missing objects. Following Cleaners are currently available:

  • Deleter: Deletes missing objects
  • Unpublisher: Unpublishes missing objects
  • Reference Cleaner: Deletes only when no references exists, otherwise the object will be unpublished
  • None: does basically nothing

To create your own cleaner you need to implement Wvision\Bundle\DataDefinitionsBundle\Cleaner\CleanerInterface and add a new service

acme_bundle.data_definitions.my_cleaner:
    class: AcmeBundle\DataDefinitions\MyCleaner
    tags:
      - { name: data_definitions.cleaner, type: my-cleaner }