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

Updated Predis to work with 1.*, not 0.8 #150

Closed
wants to merge 8 commits into from

Conversation

mattmontgomery
Copy link

I'm not sure if you'll have any use for this or be interested in any of the changes, but these are changes I made to get SncRedisBundle working with Predis 1.0 -- take them or leave them. Tests look to be passing (with two failures that were present before the changes I've made.)

use Snc\RedisBundle\Logger\RedisLogger;

/**
* ConnectionWrapper
*/
class ConnectionWrapper implements SingleConnectionInterface
class ConnectionWrapper implements ConnectionInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class should implement Predis\Connection\NodeConnectionInterface.

@nrk
Copy link
Contributor

nrk commented Aug 1, 2014

Just a side note: while Predis v1.0 is obviously better than the good old v0.8 under many aspects (at least for what concerns its internals), the latter is plenty stable and will be maintained for a while more for eventual bugfixes awaiting for a stable release of Redis 3.0. So while upgrading to Predis v1.0 is obviously recommended, there's no need to rush for existing codebases.

@mattmontgomery
Copy link
Author

Thanks @nrk -- I appreciate the look and advice.

@snc
Copy link
Owner

snc commented Aug 4, 2014

Thanks @mattmontgomery and @nrk. I think this would be a good start in conjunction with #126 for a 2.0 version.

@@ -129,7 +129,7 @@ private function addClientsSection(ArrayNodeDefinition $rootNode)
->scalarNode('profile')->defaultValue('2.4')
->beforeNormalization()
->ifTrue(function($v) { return false === is_string($v); })
->then(function($v) { return sprintf('%.1F', $v); })
->then(function($v) { return sprintf('%.1f', $v); })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at #136/#137, the F is important.

@snc
Copy link
Owner

snc commented Aug 9, 2014

Some changes (session) you made have nothing to do with the predis update. Could you remove them please and send them in another PR if needed?

@tystr
Copy link

tystr commented Aug 16, 2014

+1 for supporting predis 1.x

@theUniC
Copy link
Contributor

theUniC commented Oct 9, 2014

Any update on this?

@zot24
Copy link

zot24 commented Nov 21, 2014

👍

@tholder
Copy link

tholder commented Nov 21, 2014

Just to confirm, we tried this on a project with predis 1 and with a very quick test it seemed to work. So a tentative 👍 😄

@snc
Copy link
Owner

snc commented Nov 21, 2014

@mattmontgomery have you seen my comments some months ago? :-)

@theUniC
Copy link
Contributor

theUniC commented Nov 21, 2014

Given that @mattmontgomery has been out for months ... What If I fork his repository, remove the session changes and send another PR?

@snc
Copy link
Owner

snc commented Nov 25, 2014

This would be very nice!

@mattmontgomery
Copy link
Author

Ah, I really should have better notifications set up. Glad you've picked that up, @theUniC.

@ooflorent
Copy link

Any news here?

@garak
Copy link

garak commented Apr 2, 2015

👍

1 similar comment
@Divi
Copy link

Divi commented Apr 13, 2015

👍

@penfold45
Copy link

Hi is there a reason this has not been merged in yet?

I just tried to update to predis 1.0.1 and got

PHP Fatal error:  Class 'Predis\Profile\ServerProfile' not found in vendor/snc/redis-bundle/Snc/RedisBundle/DependencyInjection/SncRedisExtension.php on line 158

Which this pull request appear to fix

@theUniC
Copy link
Contributor

theUniC commented Jun 15, 2015

There is a second PR, #172, to continue with the work from @mattmontgomery.

Unfortunately, this project appears to be discontinued since the owner has not said anything and there are no commits / merges since September from last year :(

@penfold45
Copy link

Oh I hadn't noticed that. That's a great shame if this is dead :(

@snc
Copy link
Owner

snc commented Jun 30, 2015

I haven't noticed this, too, sorry, #172 got merged.

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.