hiqdev / hidev

Automation tool mixed with code generator for easier continuous development
http://hiqdev.com/packages/hidev
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

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

Open jomonkj opened 5 years ago

hiqsol commented 5 years ago

Can you please show a corresponding part of your config?

jomonkj commented 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
``
hiqsol commented 5 years ago

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.

jomonkj commented 5 years ago

ok