src/Protocol/Protocol.php
protected function createFrame($command)
    {
        $frame = new Frame($command);

        if ($this->version === Version::VERSION_1_0) {
            $frame->legacyMode(true);
        }

        return $frame;
    }
protected function createFrame($command)
    {
        $frame = new Frame($command);

        if ($this->version === Version::VERSION_1_0) {
            $frame->legacyMode(true);
        }

        return $frame;
    }
protected function createFrame ( $ command ) { $ frame = new Frame ( $ command ) ; if ( $ this -> version === Version :: VERSION_1_0 ) { $ frame -> legacyMode ( true ) ; } return $ frame ; }
Creates a Frame according to the detected STOMP version.

@param string $command
@return Frame
Creates a Frame according to the detected STOMP version .