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

dumpNode() public method

public dumpNode ( Symfony\Component\Config\Definition\NodeInterface $node )
$node Symfony\Component\Config\Definition\NodeInterface
    public function dumpNode(NodeInterface $node)
    {
        $this->reference = '';
        $this->writeNode($node);
        $ref = $this->reference;
        $this->reference = null;
        return $ref;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $analyzerConfiguration = Analyzer\Factory::getPassesConfigurations();
     $configuration = new Configuration([], $analyzerConfiguration);
     $configTree = $configuration->getConfigTreeBuilder($analyzerConfiguration)->buildTree();
     $dumper = new YamlReferenceDumper();
     $output->writeln($dumper->dumpNode($configTree));
 }
All Usage Examples Of Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper::dumpNode