The example of registering cron tasks is XC/MultiCurrency module.
Its install.yaml contains the registration of cron task:
Code:
XLite\Model\Task:
- owner: XLite\Module\XC\MultiCurrency\Core\Task\UpdateRates
and the task itself is described in the aforementioned class:
Code:
\XLite\Module\XC\MultiCurrency\Core\Task\UpdateRates
The routine that actually runs all cron tasks is doNoAction() method of the \XLite\Controller\Console\Cron class.
Please, let me know if this info helps. Of course, Mike, if there is any other question, just let me know.
Tony