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

Predis 1.0 in branch 1.1 #172

Merged
merged 4 commits into from
Jun 30, 2015
Merged

Predis 1.0 in branch 1.1 #172

merged 4 commits into from
Jun 30, 2015

Conversation

theUniC
Copy link
Contributor

@theUniC theUniC commented Dec 31, 2014

Hi,

I've reproduced all the work to integrate Predis 1.0 into the 1.1 branch.

@bastnic
Copy link

bastnic commented Jan 8, 2015

👍

1 similar comment
@michaelthieulin
Copy link

👍

@theUniC
Copy link
Contributor Author

theUniC commented Jan 16, 2015

Do I miss something left to do?

@TNAJanssen
Copy link

+100

@ternel
Copy link

ternel commented Jan 21, 2015

Nice 👍

@@ -30,5 +31,8 @@
"autoload": {

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).",

@theUniC
Copy link
Contributor Author

theUniC commented Feb 3, 2015

Sorry for the delay. I've already fixed composer.json and the test description.

@TomAdam
Copy link

TomAdam commented Mar 2, 2015

@snc would be great to get this merged.

@badlamer
Copy link

+1

1 similar comment
@fdeweger
Copy link

+1

@piotrantosik
Copy link
Contributor

Any update on this?

@mmoreram
Copy link

👍 Any update on that?

@mmoreram
Copy link

@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...

@dominics
Copy link
Contributor

@mmoreram bravo

@snc or at least remove the 'project: maintained' badge so people know what they're getting themselves into. There are serious isses with open PRs over six months old (cross-connection writes, etc.).

@Seldaek
Copy link
Collaborator

Seldaek commented Jun 30, 2015

I sent an email to snc because he might not get github notifications in his inbox.

@snc
Copy link
Owner

snc commented Jun 30, 2015

Oh damn, big sorry! Thanks for mailing me @Seldaek! I'll merge this now.

snc added a commit that referenced this pull request Jun 30, 2015
Predis 1.0 in branch 1.1
@snc snc merged commit 77f65e3 into snc:1.1 Jun 30, 2015
@mmoreram
Copy link

Thanks @Seldaek

@mmoreram
Copy link

@snc would be really nice to tag 1.1.9 in order to create stable dependencies between projects :)

@snc
Copy link
Owner

snc commented Jun 30, 2015

@mmoreram Just pushed the tag.

@mmoreram
Copy link

@snc Thanks :)

@javihgil
Copy link

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

@Seldaek
Copy link
Collaborator

Seldaek commented Jun 30, 2015

You need to require predis ^1.0 to use 1.1.9.. which is kind of a BC break. I don't think this should have been released as is.. If the code worked with predis 1.0 or 0.8 it would be alright I guess, but that doesn't seem to be possible.

@javihgil
Copy link

Thanks, that solves my problem

@digitalkaoz
Copy link

im on @Seldaek's side..ugly avoidable BC break which could be simple solved by a class_exists? and that in a patch level -.-

@snc
Copy link
Owner

snc commented Jul 2, 2015

@digitalkaoz Are you sure a simple class_exists would solve this? I'm very busy right now and don't have the time to check this... I'm thinking about reverting this PR and instead merge it into the master branch.

@Seldaek
Copy link
Collaborator

Seldaek commented Jul 2, 2015 via email

@digitalkaoz
Copy link

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?

@abraovic
Copy link

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,
Ante.

@liuggio
Copy link

liuggio commented May 30, 2016

In production i had to patch this bundle using the @digitalkaoz solution
Easy to reproduce the website is https://poser.pugx.org
agaist this repo https://github.com/liuggio/badge-poser/tree/flat-square
/cc @snc

-EDIT-
~~The problem persist on the dep.inj. definition of Parameters and Options. ~~
please revert or patch it.

-EDIT2-
my fault I messed up with the PHP server version ...

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.