I namespaced fsm.php into my own application library, and bumped into a constructor issue.
new lib\FSM('START', $this->payload); doesn't actually set initialstate and currentstate,
because the FSM() method is not seen as a constructor.
Maybe it is time to start php 5.0 compatibility and use __construct() :-)
I namespaced fsm.php into my own application library, and bumped into a constructor issue.
new lib\FSM('START', $this->payload);
doesn't actually set initialstate and currentstate, because the FSM() method is not seen as a constructor.Maybe it is time to start php 5.0 compatibility and use __construct() :-)