Verify state and future intentions of a persistence identity VH
Currently, there is an Identity.JsonViewHelper that has two major drawbacks:
- the Code Example talks about a Persistence.Identity ViewHelper that only outputs raw
97e7e90a-413c-44ef-b2d0-ddfa4387b5ca, for example
- the actual output of the Identity.JsonViewHelper is
json_encode(array('__identity' => $identifier))
additionally, in the Conference package there's a
Identity.Uuid that basically also outputs raw
I do not agree with the following things in the current situation:
- I think there should be a better name than Persistence.Identity; the "namespace" Persistence doesn't feel good to me. Let's discuss this, maybe you agree.
- Outputting JSON would not make much sense; at least I'd expect the RAW value put out that could than be edited further (in this case I agree with the code sample's behaviour or the Conference's Identity.Uuid's(same).
Maybe the Format.Json VieHelper I just pushed could be involved, at least as post-processor using ViewHelper chaining or similar.
I really think we should clean up here some things.
While writing this, I think at least correcting the Code Example should be duty, and there should be a new flag called e.g. "rawIdentifier" that only returns the plain ID string with no JSON around.
But, well, the VH's name is already JSON, so...
Just tell me some guidelines, I will gladly do it.