Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jomonkj opened this issue May 17, 2019 · 4 comments
Open

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

jomonkj opened this issue May 17, 2019 · 4 comments

Comments

@jomonkj
Copy link
Contributor

jomonkj commented May 17, 2019

No description provided.

@hiqsol
Copy link
Member

hiqsol commented May 20, 2019

Can you please show a corresponding part of your config?

@jomonkj
Copy link
Contributor Author

jomonkj commented May 20, 2019

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
Copy link
Member

hiqsol commented May 20, 2019

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
Copy link
Contributor Author

jomonkj commented May 20, 2019

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants