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

Configuration error #24

Closed
gglinux opened this issue Apr 3, 2017 · 4 comments
Closed

Configuration error #24

gglinux opened this issue Apr 3, 2017 · 4 comments

Comments

@gglinux
Copy link

gglinux commented Apr 3, 2017

my configuration like this,and i add the yiisoft/yii2-redis.but yii cant't find the "\zhuravljov\yii\queue\redis\Queue",and show 500 error. I am strange with this,can you tell me how to solve

return [
'bootstrap' => ['queue'],
'components' => [
'queue' => [
'class' => \zhuravljov\yii\queue\redis\Queue::class,
'redis' => 'redis', // connection ID
'channel' => 'queue', // queue channel
],
],
];

@zhuravljov
Copy link
Member

I don't know why component doesn't work in you app.
Config is correct.
Did you install composer package?
Do you have vendor/zhuravljov/yii2-queue folder?
Do you have vendor/zhuravljov/yii2-queue/src/redis/Queue.php?
I think, if you answer on that questions, you will solve the problem yourself.

@gglinux
Copy link
Author

gglinux commented Apr 4, 2017

I have the vendor/zhuravljov/yii2-queue folder,but don't have vendor/zhuravljov/yii2-queue/src/redis/Queue.php.

I generate it by composer, why can't generate the /redis/Queue.php?
Or create it by myself? But the guide don't show this

image

@zhuravljov
Copy link
Member

Ok, you need run composer update that update package to 0.11.0.

@gglinux
Copy link
Author

gglinux commented Apr 4, 2017

Thx, it work. vendor/zhuravljov/yii2-queue/src/redis/Queue.php was found.
the older version is 0.10.0

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

No branches or pull requests

2 participants