Skip to content

Allow callback to call object method#26

Merged
winzou merged 2 commits intomasterfrom
callback
Oct 27, 2016
Merged

Allow callback to call object method#26
winzou merged 2 commits intomasterfrom
callback

Conversation

@winzou
Copy link
Copy Markdown
Owner

@winzou winzou commented Oct 27, 2016

Now if you define a callback as array('object', 'method'), the callback will call the method method on the object undergoing the transition. You can also use array('object.property', 'otherMethod') to call otherMethod on the property $object->getProperty() (using property accessor).

Very useful!

@winzou winzou merged commit fdba189 into master Oct 27, 2016
@winzou winzou deleted the callback branch October 27, 2016 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant