private function loadCallbacks(StateMachineInterface $stateMachine) { if (!isset($this->config['callbacks'])) { return; } foreach (array('before', 'after') as $position) { $this->loadCallbacksFor($position, $stateMachine); } }