Skip to content

Show how to connect machine and transitions #1

tidal opened this Issue Dec 5, 2012 · 1 comment

2 participants

tidal commented Dec 5, 2012

Nice lightweight implementation!

However looking at the usage instructions I was first confused
how the machine knows about its transitions, actions and events.

Looking at the code I guess a little

$machine->addEvent('flip', array($turnOn, $turnOff)); 

would prevent confusing me next time! ;)

Thanks for sharing tho!


wow, i didn't realize that I left that out of the README file. thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.