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

[4.0] Suggest predis instead of requiring it #531

Merged
merged 4 commits into from
Feb 28, 2019

Conversation

ThomHurks
Copy link
Contributor

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.

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.
@driesvints driesvints changed the title Suggest predis instead of requiring it [4.0] Suggest predis instead of requiring it Feb 28, 2019
@taylorotwell
Copy link
Member

All tests are going to fail unless you add it to require-dev.

@driesvints
Copy link
Member

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
composer.json Outdated Show resolved Hide resolved
Co-Authored-By: ThomHurks <thomhurks@gmail.com>
@driesvints
Copy link
Member

Restarted build.

@ThomHurks
Copy link
Contributor Author

Thanks for the feedback @driesvints and @taylorotwell

@taylorotwell taylorotwell merged commit 2b6184b into laravel:master Feb 28, 2019
@ThomHurks
Copy link
Contributor Author

Thanks @taylorotwell!

@driesvints
Copy link
Member

Thanks for sending this in :)

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

Successfully merging this pull request may close these issues.

3 participants