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
EZP-29106: Refactored eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/** to be able to add custom attributes #2319
Conversation
…eObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Was about to suggest this also for RestExecutedView, for the use case of enhancing Search for SubItems and optionally UDW browse views, but as it visits the content / location values separately, it's perhaps more of an topic for later to extend that somehow, but only for Views when asked for (by custom content type).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on eZ Platform EE v1.13.2.
} | ||
|
||
// @todo FIXME: What exception to use? | ||
throw new \Exception('Undefined version status: ' . $status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\RuntimeException
because in this case it would be an internal software error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in ae1063e.
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
PR updated according to @alongosz suggestions. |
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
6.x
Partial refactored eZ/Publish/Core/REST/Server/Output/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
TODO:
$ composer fix-cs
).