private function addBundleConfiguration(NodeBuilder $node)
    {
        $node
            ->arrayNode('bundles')
                ->defaultValue($this->bundles)
                ->prototype('scalar')
                    ->validate()
                    ->ifNotInArray($this->bundles)
                    ->thenInvalid('%s is not a valid bundle.')
                ->end()
            ->end();
    }
private function addBundleConfiguration(NodeBuilder $node)
    {
        $node
            ->arrayNode('bundles')
                ->defaultValue($this->bundles)
                ->prototype('scalar')
                    ->validate()
                    ->ifNotInArray($this->bundles)
                    ->thenInvalid('%s is not a valid bundle.')
                ->end()
            ->end();
    }
private function addBundleConfiguration ( NodeBuilder $ node ) { $ node -> arrayNode ( 'bundles' ) -> defaultValue ( $ this -> bundles ) -> prototype ( 'scalar' ) -> validate ( ) -> ifNotInArray ( $ this -> bundles ) -> thenInvalid ( '%s is not a valid bundle.' ) -> end ( ) -> end ( ) ; }
Adds bundle configuration to the tree builder.

@param NodeBuilder $node
Adds bundle configuration to the tree builder .