This bundle adds cleaner functionality for periodically removing arbitrary entities and/or files fulfilling a certain condition (using poor man's cron or your server's cron).
Cleaner configuration
- Install via composer (
composer require heimrichhannot/contao-cleaner-bundle
) or contao manager - Update your database
Event | Class | Description |
---|---|---|
huh.cleaner.event.before_clean | BeforeCleanEvent | Run before the entity is cleaned. Use setSkipped() to skip the cleaning of the passed in entity. |
huh.cleaner.event.after_clean | AfterCleanEvent | Run after the entity is cleaned. |