/**
* {@inheritdoc}
*
* @param StateMachineInterface $stateMachine
*/
public function load(StateMachineInterface $stateMachine)
{
$stateMachine->setStateAccessor(new PropertyPathStateAccessor($this->config['property_path']));
$stateMachine->setGraph($this->config['graph']);
array_walk($this->config['states'], array($stateMachine, 'addState'));
array_walk($this->config['transitions'], array($stateMachine, 'addTransition'));
}