-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Added the support for class inheritance and skipping handlers #177
Conversation
Ping @kinncj and @guilhermeblanco |
At least the class inheritance support is primordial. |
Thanks for cleaning up the pull request. Unfortunately, I think you can already achieve both features with what we already have. Let me explain a bit: If you would like to catch a base class with a handler, you can already annotate the respective properties with the Similarly, the SkipStepException can be solved by calling |
Johannes, This post is kind of old, but about class inheritance : the @type annotation could do the job, but it can't be used on the class level. If i try to serialize the object, i cant use the handler define for the parent class... I have a master class FormFlow, and i try to serialize a object instance of CreateItemFormFlow, subclass of FormFlow. How can i achieve that ? |
Sorry for the terribly long feedback loop Closing the PR, since too many things changed on master in the last years. If you are still interested in working on this feel free to re-open a new PR based on the current master including proper tests |
re opening to keep track of it as feature request |
@Majkl578 what do you think about
is not true, as the object is already in visiting state, so another call to |
The part of "skipping handlers" has been implemented in #1238 (it was already possible to implement something as that in the past, but it requited a two-steps approach, while now can be done in a single one). Regarding the inheritance, I think that @schmittjoh answer it explains how to use the
|
(Originally submitted as #175)
This PR is to add the support to allow the handler to tell the graph navigator to skip itself and proceed with the normal procedure. For instance,
Also, this PR supports the class inheritance such that we can specify a parent class in
getSubscribingMethods
. For instance,