yohang / Finite

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

Find a way to replace `StatefulInterface` #41

Closed yohang closed 10 years ago

yohang commented 10 years ago

Since #28, and as noticed in #39, objects managed by Finite no longer needs to implement StatefulInterface. That's a problem as we have no way to throw an exception when trying to retrieve a state machine bound to a non-stateful object.

We have to find a way to address this issue.

cc @winzou, @cordoval