Daniele Alessandri
d0b6f7992e
Add hhvm-nightly as a testing environment on Travis CI.
2014-09-05 10:49:17 +02:00
Daniele Alessandri
69ad62b59d
Merge remote-tracking branch 'github/pr/208' into v1.0
2014-09-05 10:45:02 +02:00
Daniele Alessandri
ec099a3b6e
Back to development.
...
Forgot to do so earlier, as usual...
[ci skip]
2014-09-05 10:44:21 +02:00
Thibaud BARDIN
3d10be888c
Change order of throws
2014-09-01 03:10:08 +02:00
Thibaud BARDIN
0fc5c5ee77
[phpdoc] Fix missing throws of phpdoc headers.
2014-08-09 23:14:45 +02:00
Daniele Alessandri
99f4312a6f
Apply workaround for bug in versions of PHP < 5.3.9.
...
This change is needed to address a bug in older versions of PHP 5.3
affecting inheritance (see https://bugs.php.net/bug.php?id=66818 ).
2014-08-08 15:49:05 +02:00
Daniele Alessandri
8775fdfd80
Merge pull request #204 from GrahamCampbell/patch-1
...
Removed hhvm from allow failures
2014-08-08 14:26:30 +02:00
Graham Campbell
fee8e709cf
Removed hhvm from allow failures
2014-08-08 13:12:33 +01:00
Daniele Alessandri
e9598b65f4
Add more badges to README.
2014-08-08 13:52:28 +02:00
Daniele Alessandri
d26db6f0c2
Remove extras from composer.json.
...
[ci skip]
2014-08-01 12:17:16 +02:00
Daniele Alessandri
d4be306d0a
... and here comes Predis v1.0.0!
v1.0.0
2014-08-01 11:59:50 +02:00
Daniele Alessandri
25d0008b2f
Apply minor fix in CHANGELOG.
2014-08-01 11:46:56 +02:00
Daniele Alessandri
30274aa242
Integrate CHANGELOG notes from v0.8.7.
2014-08-01 11:44:26 +02:00
Daniele Alessandri
f5ba47ad74
Change response parser for ZSCAN to match changes applied to ZRANGE.
2014-07-30 16:45:00 +02:00
Daniele Alessandri
fbb0236840
Apply minor code-styling changes.
2014-07-30 15:30:02 +02:00
Daniele Alessandri
ba5e501346
Use arguments as defined by Redis when calling WATCH internally.
2014-07-30 14:18:20 +02:00
Daniele Alessandri
ab9cbe712f
Specify type hint in interface.
2014-07-30 11:31:31 +02:00
Daniele Alessandri
16f2d8a768
Stick to 2.8 as the default target for the test suite.
...
Even though tere are no changes between running the test suite against
3.0 and 2.8, we will stick with the current stable Redis version as
the default target and switch to 3.0 as soon as it will be released.
[ci skip]
2014-07-30 11:08:56 +02:00
Daniele Alessandri
7c9e4ab595
Update CHANGELOG.
...
[ci skip]
2014-07-28 20:50:01 +02:00
Daniele Alessandri
b6389e4a03
Switch to "3.0" as the default server profile.
...
Redis 3.0 does not really change much in terms of commands (most of
the ones implemented in the "unstable" branch have been backported to
the "2.8" branch after all) aside from a few cluster-related ones, so
we can bump the default version without worries.
2014-07-28 20:36:12 +02:00
Daniele Alessandri
dedc1ba0a9
Move command "COMMAND" to the server profile for Redis 2.8.
...
This command has been backported from the "unstable" branch of Redis
to the "2.8" one, and it is available since 2.8.13.
2014-07-28 20:30:09 +02:00
Daniele Alessandri
df653a7c00
Minor code styling and phpdoc changes.
2014-07-28 12:04:07 +02:00
Daniele Alessandri
5c02e4e47b
Update README.
...
[ci skip]
2014-07-28 10:40:01 +02:00
Daniele Alessandri
c2b24bd873
Merge branch 'v1.0/inspection-fixes'
2014-07-28 00:02:54 +02:00
Daniele Alessandri
45e351be79
[phpdoc] Fix formatting of phpdoc headers.
2014-07-27 23:59:37 +02:00
Daniele Alessandri
b5cdab35c7
Remove useless argument from method signatures in WebdisConnection.
2014-07-27 23:06:21 +02:00
Daniele Alessandri
dbfc1a74ba
More random fixes after inspection.
2014-07-27 23:06:17 +02:00
Daniele Alessandri
4e1186f845
[phpdoc] Fix undefined classes.
2014-07-27 21:57:50 +02:00
Daniele Alessandri
aa5c893d5a
[phpdoc] Fix undefined namespaces.
2014-07-27 21:57:40 +02:00
Daniele Alessandri
fff303a03b
Comply with PSR-2 on intentional fall-through in non-empty case.
2014-07-27 21:57:40 +02:00
Daniele Alessandri
78ec22563a
The \Iterator interface returns void for next().
2014-07-27 21:57:40 +02:00
Daniele Alessandri
30254a2594
[phpdoc] Various phpdoc fixes.
2014-07-27 21:57:13 +02:00
Daniele Alessandri
f372029cfc
Fix code smells.
2014-07-27 20:13:24 +02:00
Daniele Alessandri
87aba18002
Merge branch 'v1.0/phpdocs'
2014-07-27 19:19:44 +02:00
Daniele Alessandri
dc33d62b77
Miscellaneous fixes for "use" directives.
2014-07-27 19:19:20 +02:00
Daniele Alessandri
b230e243f5
Predis\PubSub\DispatcherLoop should take a PubSub consumer instance.
2014-07-27 16:53:46 +02:00
Daniele Alessandri
44c9232b13
Update README.
...
[ci skip]
2014-07-27 15:41:06 +02:00
Daniele Alessandri
776f5831a6
Merge branch 'v1.0/custom-parameters'
2014-07-27 14:19:30 +02:00
Daniele Alessandri
31e2516156
Makes it easier to use a custom parameters class.
...
Simply overriding one method of the standard connection factory class,
used internally by Predis, allows developers to use their own custom
connection parameters classes through the whole library.
For example, in order to support Heroku-style URIs one can do:
class HerokuParameters extends Predis\Connection\Parameters
{
protected function filter(array $parameters)
{
if (
isset($parameters['scheme']) &&
$parameters['scheme'] === 'redis'
) {
$parameters['scheme'] = 'tcp';
}
if (isset($parameters['pass'])) {
$parameters['password'] = $parameters['pass'];
}
unset($parameters['user'], $parameters['pass']);
return $parameters;
}
}
class ConnectionFactory extends Predis\Connection\Factory
{
protected function createParameters($parameters)
{
return HerokuParameters::create($parameters);
}
}
$client = new Predis\Client($_ENV['REDISCLOUD_URL'], [
'connections' => new ConnectionFactory()
]);
This idea comes in response to #196 , but since we do not want to bake
support for SaaS-specific URIs in Predis this is the best compromise
we can offer leave developers free to implement their own logic for
handling these kind of URIs with the additional benefit of having it
available through the whole library (think of cluster or replication
where you have multiple nodes, thus multiple instances of connection
parameters to create).
2014-07-27 14:13:30 +02:00
Daniele Alessandri
b379d4f1b3
Merge pull request #194 from GrahamCampbell/gitstuff
...
Added a .gitattributes file
2014-07-27 11:46:51 +02:00
Graham Campbell
60a863f5fc
Include docs
2014-07-27 10:40:38 +01:00
Daniele Alessandri
f7d8088bba
Added @method tags to phpdoc header of Predis\ClientContextInterface.
2014-07-27 10:53:40 +02:00
Daniele Alessandri
38710cd69b
Added Predis\ClientContextInterface.
...
This interface replaces Predis\ExecutableContextInterface and it is
used by client-side contexts such as pipelines or transactions.
2014-07-27 10:46:11 +02:00
Graham Campbell
7fa17b2ebc
Added a .gitattributes file
2014-07-26 15:30:23 +01:00
Daniele Alessandri
dcb57ea08d
Fix method visibility in Predis\Pipeline\ConnectionErrorProof.
2014-07-25 16:44:04 +02:00
Daniele Alessandri
872d953b50
Update README.
...
[ci skip]
2014-07-25 16:40:21 +02:00
Daniele Alessandri
f630ff809f
Update README.
...
[ci skip]
2014-07-25 16:30:38 +02:00
Daniele Alessandri
19bad41582
Update README.
2014-07-25 13:21:12 +02:00
Daniele Alessandri
be6b7fe5f0
Update README.
...
[ci skip]
2014-07-25 13:16:09 +02:00
Daniele Alessandri
647c51a5b3
Update README.
...
[ci skip]
2014-07-25 13:11:33 +02:00