You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renamed composer package to aaronjunker/sssm. (#1)
Added composer autoloader.
Renamed classes to match pascalcase
Moved different classes in different files.
Changed syntax of state class from state(["allowedState1", "allowedState2"], $canLoop) to State($stateName, $canLoop), which lets you provide the actual class instead of just a string.
Added new exception: LoopNotAllowedException.
You now have to register all states in the state machine.
Added new exception: StateNotRegistredInStateMachineException.
Renamed stateNotAllowedException to StateTransitionNotAllowedException.
Changed exception string of StateTransitionNotAllowedException.
Added new function to state class: addAllowedStateTransition()
Removed some leftover debug functions.
You can now add names to states.
New function : "$stateMachine->getCurrentStateName()".
A state object now gets passed to the event callbacks.