src/DebugBar/DataFormatter/DebugBarVarDumper.php
protected function dump(Data $data)
    {
        $dumper = $this->getDumper();
        $output = fopen('php://memory', 'r+b');
        $dumper->setOutput($output);
        $dumper->setDumpHeader(''); // we don't actually want a dump header
        // NOTE:  Symfony 3.2 added the third $extraDisplayOptions parameter.  Older versions will
        // safely ignore it.
        $dumper->dump($data, null, $this->getDisplayOptions());
        $result = stream_get_contents($output, -1, 0);
        fclose($output);
        return $result;
    }
protected function dump(Data $data)
    {
        $dumper = $this->getDumper();
        $output = fopen('php://memory', 'r+b');
        $dumper->setOutput($output);
        $dumper->setDumpHeader(''); // we don't actually want a dump header
        // NOTE:  Symfony 3.2 added the third $extraDisplayOptions parameter.  Older versions will
        // safely ignore it.
        $dumper->dump($data, null, $this->getDisplayOptions());
        $result = stream_get_contents($output, -1, 0);
        fclose($output);
        return $result;
    }
protected function dump ( Data $ data ) { $ dumper = $ this -> getDumper ( ) ; $ output = fopen ( 'php://memory' , 'r+b' ) ; $ dumper -> setOutput ( $ output ) ; $ dumper -> setDumpHeader ( '' ) ; // we don't actually want a dump header // NOTE:  Symfony 3.2 added the third $extraDisplayOptions parameter.  Older versions will // safely ignore it. $ dumper -> dump ( $ data , null , $ this -> getDisplayOptions ( ) ) ; $ result = stream_get_contents ( $ output , - 1 , 0 ) ; fclose ( $ output ) ; return $ result ; }
Helper function to dump a Data object to HTML.

@param Data $data
@return string
Helper function to dump a Data object to HTML .