Open jomonkj opened 5 years ago
you can check my config in
https://github.com/codexten/yii-core/blob/master/src/config/core.php#L15
Event manager https://github.com/codexten/yii-core/blob/master/src/components/EventManager.php
example
cron controller
https://github.com/codexten/yii-app-console/blob/master/src/controllers/CronController.php
attaching cron task to cron events
'eventManager' => [
'events' => [
[CronController::class, CronController::EVENT_ON_DAILY_RUN, [Events::class, 'dailyTask']],
],
then runing
./vendor/bin/hidev cron/daily # will trigger two times dailyTask function for one event
./yii cron/daily # will works perfect
``
I've started redoing hidev for Yii 3 but the framework is being changed right now and I don't keep up with the changes. So if yii
work for you I would recommend use it.
I'll continue fixing hidev for Yii 3 but a bit later.
ok
Can you please show a corresponding part of your config?