Neos.Fusion/Classes/Core/Parser.php
protected function parseObjectDefinition($fusionLine)
    {
        $result = preg_match(self::SPLIT_PATTERN_OBJECTDEFINITION, $fusionLine, $matches);
        if ($result !== 1) {
            throw new Fusion\Exception('Invalid object definition "' . $fusionLine . '"', 1180548488);
        }

        $objectPath = $this->getCurrentObjectPathPrefix() . $matches['ObjectPath'];
        switch ($matches['Operator']) {
            case '=':
                $this->parseValueAssignment($objectPath, $matches['Value']);
                break;
            case '>':
                $this->parseValueUnAssignment($objectPath);
                break;
            case '<':
                $this->parseValueCopy($matches['Value'], $objectPath);
                break;
        }

        if (isset($matches['OpeningConfinement'])) {
            $this->parseConfinementBlock($matches['ObjectPath'], true);
        }
    }
protected function parseObjectDefinition($fusionLine)
    {
        $result = preg_match(self::SPLIT_PATTERN_OBJECTDEFINITION, $fusionLine, $matches);
        if ($result !== 1) {
            throw new Fusion\Exception('Invalid object definition "' . $fusionLine . '"', 1180548488);
        }

        $objectPath = $this->getCurrentObjectPathPrefix() . $matches['ObjectPath'];
        switch ($matches['Operator']) {
            case '=':
                $this->parseValueAssignment($objectPath, $matches['Value']);
                break;
            case '>':
                $this->parseValueUnAssignment($objectPath);
                break;
            case '<':
                $this->parseValueCopy($matches['Value'], $objectPath);
                break;
        }

        if (isset($matches['OpeningConfinement'])) {
            $this->parseConfinementBlock($matches['ObjectPath'], true);
        }
    }
protected function parseObjectDefinition ( $ fusionLine ) { $ result = preg_match ( self :: SPLIT_PATTERN_OBJECTDEFINITION , $ fusionLine , $ matches ) ; if ( $ result !== 1 ) { throw new Fusion \ Exception ( 'Invalid object definition "' . $ fusionLine . '"' , 1180548488 ) ; } $ objectPath = $ this -> getCurrentObjectPathPrefix ( ) . $ matches [ 'ObjectPath' ] ; switch ( $ matches [ 'Operator' ] ) { case '=' : $ this -> parseValueAssignment ( $ objectPath , $ matches [ 'Value' ] ) ; break ; case '>' : $ this -> parseValueUnAssignment ( $ objectPath ) ; break ; case '<' : $ this -> parseValueCopy ( $ matches [ 'Value' ] , $ objectPath ) ; break ; } if ( isset ( $ matches [ 'OpeningConfinement' ] ) ) { $ this -> parseConfinementBlock ( $ matches [ 'ObjectPath' ] , true ) ; } }
Parses an object definition.

@param string $fusionLine One line of Fusion code
@return void
@throws Fusion\Exception
Parses an object definition .