This allows us to load the statemachine configuration from a specific source and use
a different sink to write the current state and history information to.
You might want to do this to read the relatively static content for the configuration from
the filesystem and use a fast backend system to write the state and transition history data to.
for example:
- use an xml file with the PDO (sql) adapter:
izzum\statemachine\loader\XML & izzum\statemachine\persistence\PDO
- use a json file with the Redis adapter:
izzum\statemachine\loader\JSON & izzum\statemachine\persistence\Redis classes
- use php code to configure the machine with the Session adapter:
izzum\statemachine\loader\LoaderArray & izzum\statemachine\persistence\Session classes)