src/Infrastructure/Workflow/XmlStateMachineBuilder.php
protected function parseStateMachineDefitions()
    {
        $defs = $this->getOption('state_machine_definition');
        if ($defs instanceof ImmutableOptionsInterface) {
            return $defs->toArray();
        } elseif (is_array($defs)) {
            return $defs;
        }

        if (!is_string($defs)) {
            throw new RuntimeError(
                'Option "state_machine_definition" must be a path to an xml file ' .
                'or already parsed definitions provided as an array.'
            );
        }
        $parser = new StateMachineDefinitionParser();

        return $parser->parse($defs);
    }
protected function parseStateMachineDefitions()
    {
        $defs = $this->getOption('state_machine_definition');
        if ($defs instanceof ImmutableOptionsInterface) {
            return $defs->toArray();
        } elseif (is_array($defs)) {
            return $defs;
        }

        if (!is_string($defs)) {
            throw new RuntimeError(
                'Option "state_machine_definition" must be a path to an xml file ' .
                'or already parsed definitions provided as an array.'
            );
        }
        $parser = new StateMachineDefinitionParser();

        return $parser->parse($defs);
    }
protected function parseStateMachineDefitions ( ) { $ defs = $ this -> getOption ( 'state_machine_definition' ) ; if ( $ defs instanceof ImmutableOptionsInterface ) { return $ defs -> toArray ( ) ; } elseif ( is_array ( $ defs ) ) { return $ defs ; } if ( ! is_string ( $ defs ) ) { throw new RuntimeError ( 'Option "state_machine_definition" must be a path to an xml file ' . 'or already parsed definitions provided as an array.' ) ; } $ parser = new StateMachineDefinitionParser ( ) ; return $ parser -> parse ( $ defs ) ; }
Parses the configured state machine definition file and returns all parsed state machine definitions.

@return array An assoc array with name of a state machine as key and the state machine def as value.
Parses the configured state machine definition file and returns all parsed state machine definitions .