Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper::dump PHP Method

dump() public method

public dump ( Symfony\Component\Config\Definition\ConfigurationInterface $configuration )
$configuration Symfony\Component\Config\Definition\ConfigurationInterface
    public function dump(ConfigurationInterface $configuration)
    {
        return $this->dumpNode($configuration->getConfigTreeBuilder()->buildTree());
    }

Usage Example

 public function testDumper()
 {
     $configuration = new ExampleConfiguration();
     $dumper = new YamlReferenceDumper();
     $this->markTestIncomplete('The Yaml Dumper currently does not support prototyped arrays');
     $this->assertEquals($this->getConfigurationAsString(), $dumper->dump($configuration));
 }
All Usage Examples Of Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper::dump