contao-community-alliance/events-cron
Cron event for Contao Open Source CMS
Maintainers
Package info
github.com/contao-community-alliance/events-cron
Type:contao-module
pkg:composer/contao-community-alliance/events-cron
1.0.2
2014-12-15 02:44 UTC
Requires
- php: >=5.3
- contao-community-alliance/composer-plugin: ~2.0
- contao-community-alliance/event-dispatcher: ~1.0
- contao/core: >=2.11,<4.0-dev
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
LGPL-3.0+ 687577049ea8d7a879ae086a717219f3fd9eabd2
- Tristan Lins <tristan.lins.woop@bit3.de>
This package is auto-updated.
Last update: 2026-06-06 13:00:17 UTC
README
Provide the cron hooks as events.
$GLOBALS['TL_EVENTS']['cron.monthly'][] = function($event) { // run monthly }; $GLOBALS['TL_EVENTS']['cron.weekly'][] = function($event) { // run weekly }; $GLOBALS['TL_EVENTS']['cron.daily'][] = function($event) { // run daily }; $GLOBALS['TL_EVENTS']['cron.hourly'][] = function($event) { // run hourly }; // only support in Contao 3.0 or newer $GLOBALS['TL_EVENTS']['cron.minutely'][] = function($event) { // run minutely };
See the event dispatcher documentation for more examples how to listen on an event.
