yohang / Finite

A Simple PHP Finite State Machine
http://yohan.giarel.li/Finite
MIT License
1.31k stars 187 forks source link

Pass transition parameters to the process method #131

Closed luads closed 11 months ago

luads commented 7 years ago

Currently, the process method of the transitions doesn't receive the parameters sent through apply, and it could be very useful in some situations, as mentioned in #116.

It's a BC break because it modifies the TransitionInterface, but I hope to see it in a future version.

@yohang do you think the properties should be resolved before passing it to process?

johnkary commented 7 years ago

+1 My team would also find this feature valuable!

@yohang What can we do to help you accepting this PR?