-
Notifications
You must be signed in to change notification settings - Fork 659
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
[4.0] Suggest predis instead of requiring it #531
Conversation
Just like laravel/framework which suggests predis (and people can choose to use phpredis instead), Horizon should suggest it so people using phpredis do not needlessly install a dependency. Horizon relies on the redis config in config/database.php anyway, and trusts that the user correctly fills in that information. Requiring the user to install phpredis or predis herself is no different from what other parts of Laravel using Redis already do.
All tests are going to fail unless you add it to require-dev. |
You'll need to add it to the dev dependencies as well because the tests are failing. Maybe we can also add phpredis to the suggest list so it's clear you can either use one or the other? We'll also need to update the install instructions after the release so people know to require it predis. |
- Added predis to the dev dependencies so the build works - Also suggest ext-redis so people can choose
Co-Authored-By: ThomHurks <thomhurks@gmail.com>
Restarted build. |
Thanks for the feedback @driesvints and @taylorotwell |
Thanks @taylorotwell! |
Thanks for sending this in :) |
Follow-up to PR #381
Just like laravel/framework which suggests predis (and people can choose to use phpredis instead), Horizon should suggest it so people using phpredis do not needlessly install a dependency. Horizon relies on the redis config in config/database.php anyway, and trusts that the user correctly fills in that information. Requiring the user to install phpredis or predis herself is no different from what other parts of Laravel using Redis already do.