8000 [VarDumper] Add Redis caster by nicolas-grekas · Pull Request #18675 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@nicolas-grekas
Copy link
Member
Q A
Branch? 3.2
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Helps working on Redis connections

*/
class RedisCaster
{
private static $serializer = array(
Copy link
Contributor
@phansys phansys May 2, 2016

Choose a reason for hiding this comment

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

Are you planning to add the docblocks when the PR will be ready to merge?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, I'm not planning any doc block here...

Copy link
Contributor

Choose a reason for hiding this comment

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

@nicolas-grekas, that makes me wonder: which are the criteria we use to decide what to document and what to not document?

@stof
Copy link
Member
stof commented May 2, 2016

Can the caster be tested ?

@nicolas-grekas
Copy link
Member Author

Tests added, comments addressed.

@javiereguiluz
Copy link
Member

This feature looks great ... but the code sometimes is not very readable because of the single-letter variable names ($a, $c, etc.)

$redis = new \Redis();

if (defined('HHVM_VERSION_ID')) {
$xCast = <<<EODUMP
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use nowdoc? See #17086.

@nicolas-grekas nicolas-grekas force-pushed the dump-redis branch 2 times, most recently from e79b572 to 0b73d77 Compare May 15, 2016 16:09
@nicolas-grekas
Copy link
Member Author

ping @symfony/deciders

@nicolas-grekas nicolas-grekas merged commit 56ae8c8 into symfony:master May 25, 2016
nicolas-grekas added a commit that referenced this pull request May 25, 2016
This PR was merged into the 3.2-dev branch.

Discussion
----------

[VarDumper] Add Redis caster

| Q             | A
| ------------- | ---
| Branch?       | 3.
7FAC
2
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Helps working on Redis connections

Commits
-------

56ae8c8 [VarDumper] Add Redis caster
@nicolas-grekas nicolas-grekas deleted the dump-redis branch May 25, 2016 08:21
@fabpot fabpot mentioned this pull request Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

0