-
Notifications
You must be signed in to change notification settings - Fork 328
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
Predis 1.0 in branch 1.1 #172
Conversation
Conflicts: composer.json
👍 |
1 similar comment
👍 |
Do I miss something left to do? |
+100 |
Nice 👍 |
@@ -30,5 +31,8 @@ | |||
"autoload": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also needs to change the suggest:
"predis/predis": "If you want to use predis (currently only v0.8.x is supported).",
Sorry for the delay. I've already fixed composer.json and the test description. |
@snc would be great to get this merged. |
+1 |
1 similar comment
+1 |
Any update on this? |
👍 Any update on that? |
@snc Would be really nice, if you are no longer available for the maintenance of this project, to create a new organization, adding this project and allowing other people to do that essential work. Please man, do that... |
I sent an email to snc because he might not get github notifications in his inbox. |
Oh damn, big sorry! Thanks for mailing me @Seldaek! I'll merge this now. |
Thanks @Seldaek |
@snc would be really nice to tag |
@mmoreram Just pushed the tag. |
@snc Thanks :) |
Hi, I've just update my composer project (configured package is 1.1.*) and I get this error after updating to 1.1.9: PHP Fatal error: Class 'Predis\Profile\Factory' not found in vendor/snc/redis-bundle/Snc/RedisBundle/DependencyInjection/SncRedisExtension.php on line 158 Maybe it's an error of the Predis package, but just for your info. Thanks |
You need to require predis |
Thanks, that solves my problem |
im on @Seldaek's side..ugly avoidable BC break which could be simple solved by a |
@digitalkaoz Are you sure a simple |
class_exists isn't good enough IMO, as you are extending classes that
got renamed.. But yes doing this in a patch version isn't very nice :)
Doing it in master would be a start but the question is can we safely
upgrade to master or is it breaking everything?
|
i dont know i guess this might work? if (class_exists(\Predis\Profile\ServerProfile::class)) {
$profileDef = new Definition(get_class(\Predis\Profile\ServerProfile::get($client['options']['profile'])));
else {
$profileDef = new Definition(get_class(\Predis\Profile\Factory::get($client['options']['profile'])));
} wouldnt that work? or even vice versa, some the both class didnt exists the past right? |
Hi @snc, you might update doc https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md for predis version. It is still 0.8.x-dev which causes this problem. Best, |
-EDIT- -EDIT2- |
Hi,
I've reproduced all the work to integrate Predis 1.0 into the
1.1
branch.