heimrichhannot / contao-cleaner-bundle
This bundle adds cleaner functionality for periodically removing arbitrary entities and/or files fulfilling a certain condition in Contao (using TL_CRON or your server's cron).
Installs: 2 482
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9 || ^5.5
- heimrichhannot/contao-utils-bundle: ^2.124 || ^3.4
- symfony/event-dispatcher-contracts: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- contao/contao-rector: dev-main
- contao/manager-plugin: ^2.13
- phpstan/phpstan: ^2.1
- phpstan/phpstan-symfony: ^2.0
- rector/rector: ^2.0
- symplify/easy-coding-standard: ^12.5
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
Cleaner Bundle
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
- Install via composer (
composer require heimrichhannot/contao-cleaner-bundle
) or contao manager - Update your database
Events
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. |