Skip to content

Conversation

@marcemira
Copy link
Contributor

No description provided.

Merge pull request K-Phoen#20 from marcemira/master
Now every callback has access to same properties as can method.
This allow the possibility of bringing context to transition callbacks.
@K-Phoen
Copy link
Owner

K-Phoen commented Apr 6, 2016

This PR can not be merged as-is: it would break backward compatibility.

{
$object = $event->getStateMachine()->getObject();
$result = $this->callCallback($object, 'can', $event->getTransition()->getName());
$result = $this->callCallback($object, 'can', $event);
Copy link
Owner

Choose a reason for hiding this comment

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

BC-break here :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello K-Phoen! Can you please explain a little bit more? Can tell where's the BC-break here. I'm not using that callback on my current use case, so I might have miss something :/

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.

2 participants