private function addNodeJSConfiguration(NodeBuilder $node)
    {
        $node
            ->arrayNode('node')
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('binary')
                    ->addDefaultsIfNotSet()
                    ->beforeNormalization()
                    ->ifString()
                        ->then(function ($value) {
                            return [
                                'win32'     => $value,
                                'win64'     => $value,
                                'linux_x32' => $value,
                                'linux_x64' => $value,
                                'darwin'    => $value,
                                'fallback'  => $value,
                            ];
                        })
                    ->end()
                    ->children()
                        ->scalarNode('win32')->defaultValue('node')->end()
                        ->scalarNode('win64')->defaultValue('node')->end()
                        ->scalarNode('linux_x32')->defaultValue('node')->end()
                        ->scalarNode('linux_x64')->defaultValue('node')->end()
                        ->scalarNode('darwin')->defaultValue('node')->end()
                        ->scalarNode('fallback')->defaultValue('node')->end()
                    ->end()
                ->end()
                ->scalarNode('npm_packages_path')->defaultNull()->end()
                ->scalarNode('node_modules_path')->defaultNull()->end()
            ->end();
    }
private function addNodeJSConfiguration(NodeBuilder $node)
    {
        $node
            ->arrayNode('node')
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('binary')
                    ->addDefaultsIfNotSet()
                    ->beforeNormalization()
                    ->ifString()
                        ->then(function ($value) {
                            return [
                                'win32'     => $value,
                                'win64'     => $value,
                                'linux_x32' => $value,
                                'linux_x64' => $value,
                                'darwin'    => $value,
                                'fallback'  => $value,
                            ];
                        })
                    ->end()
                    ->children()
                        ->scalarNode('win32')->defaultValue('node')->end()
                        ->scalarNode('win64')->defaultValue('node')->end()
                        ->scalarNode('linux_x32')->defaultValue('node')->end()
                        ->scalarNode('linux_x64')->defaultValue('node')->end()
                        ->scalarNode('darwin')->defaultValue('node')->end()
                        ->scalarNode('fallback')->defaultValue('node')->end()
                    ->end()
                ->end()
                ->scalarNode('npm_packages_path')->defaultNull()->end()
                ->scalarNode('node_modules_path')->defaultNull()->end()
            ->end();
    }
private function addNodeJSConfiguration ( NodeBuilder $ node ) { $ node -> arrayNode ( 'node' ) -> addDefaultsIfNotSet ( ) -> children ( ) -> arrayNode ( 'binary' ) -> addDefaultsIfNotSet ( ) -> beforeNormalization ( ) -> ifString ( ) -> then ( function ( $ value ) { return [ 'win32' => $ value , 'win64' => $ value , 'linux_x32' => $ value , 'linux_x64' => $ value , 'darwin' => $ value , 'fallback' => $ value , ] ; } ) -> end ( ) -> children ( ) -> scalarNode ( 'win32' ) -> defaultValue ( 'node' ) -> end ( ) -> scalarNode ( 'win64' ) -> defaultValue ( 'node' ) -> end ( ) -> scalarNode ( 'linux_x32' ) -> defaultValue ( 'node' ) -> end ( ) -> scalarNode ( 'linux_x64' ) -> defaultValue ( 'node' ) -> end ( ) -> scalarNode ( 'darwin' ) -> defaultValue ( 'node' ) -> end ( ) -> scalarNode ( 'fallback' ) -> defaultValue ( 'node' ) -> end ( ) -> end ( ) -> end ( ) -> scalarNode ( 'npm_packages_path' ) -> defaultNull ( ) -> end ( ) -> scalarNode ( 'node_modules_path' ) -> defaultNull ( ) -> end ( ) -> end ( ) ; }
Adds node-js specific configuration to the tree builder.

@param NodeBuilder $node
Adds node - js specific configuration to the tree builder .