hidev icon indicating copy to clipboard operation
hidev copied to clipboard

./vendor/bin/hidev app executing bootstraping component two times

Open jomonkj opened this issue 6 years ago • 4 comments

jomonkj avatar May 17 '19 05:05 jomonkj

Can you please show a corresponding part of your config?

hiqsol avatar May 20 '19 06:05 hiqsol

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
``

jomonkj avatar May 20 '19 08:05 jomonkj

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.

hiqsol avatar May 20 '19 08:05 hiqsol

ok

jomonkj avatar May 20 '19 09:05 jomonkj