Releases: Aaron-Junker/sssm
Releases · Aaron-Junker/sssm
2.0.2
- Removed .idea folder
- 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)
toState($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
toStateTransitionNotAllowedException
. - 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.
- Added tests.
- Some little other changes here and there. (#2)
1.0.0
Initial release