src/bundle/DependencyInjection/Configuration/Parser/FieldType/RichText.php
private function setupDeprecatedConfiguration(NodeBuilder $nodeBuilder)
    {
        $nodeBuilder
            ->arrayNode('output_custom_tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".')
                ->example(
                    [
                        'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl',
                        'priority' => 10,
                    ]
                )
                ->prototype('array')
                    ->children()
                        ->scalarNode('path')
                            ->info('Path of the XSL stylesheet to load.')
                            ->isRequired()
                        ->end()
                        ->integerNode('priority')
                            ->info('Priority in the loading order. A high value will have higher precedence in overriding XSL templates.')
                            ->defaultValue(0)
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('edit_custom_tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".')
                ->example(
                    [
                        'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl',
                        'priority' => 10,
                    ]
                )
                ->prototype('array')
                    ->children()
                        ->scalarNode('path')
                            ->info('Path of the XSL stylesheet to load.')
                            ->isRequired()
                        ->end()
                        ->integerNode('priority')
                            ->info('Priority in the loading order. A high value will have higher precedence in overriding XSL templates.')
                            ->defaultValue(0)
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('input_custom_tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".')
                ->example(
                    [
                        'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl',
                        'priority' => 10,
                    ]
                )
                ->prototype('array')
                    ->children()
                        ->scalarNode('path')
                            ->info('Path of the XSL stylesheet to load.')
                            ->isRequired()
                        ->end()
                        ->integerNode('priority')
                            ->info('Priority in the loading order. A high value will have higher precedence in overriding XSL templates.')
                            ->defaultValue(0)
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('RichText template tags configuration.')
                ->useAttributeAsKey('key')
                ->normalizeKeys(false)
                ->prototype('array')
                    ->info(
                        "Name of RichText template tag.\n" .
                        "'default' and 'default_inline' tag names are reserved for fallback."
                    )
                    ->example('math_equation')
                    ->children()
                        ->append(
                            $this->getTemplateNodeDefinition(
                                'Template used for rendering RichText template tag.',
                                'MyBundle:FieldType/RichText/tag:math_equation.html.twig'
                            )
                        )
                        ->variableNode('config')
                            ->info('Tag configuration, arbitrary configuration is allowed here.')
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function setupDeprecatedConfiguration(NodeBuilder $nodeBuilder)
    {
        $nodeBuilder
            ->arrayNode('output_custom_tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".')
                ->example(
                    [
                        'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl',
                        'priority' => 10,
                    ]
                )
                ->prototype('array')
                    ->children()
                        ->scalarNode('path')
                            ->info('Path of the XSL stylesheet to load.')
                            ->isRequired()
                        ->end()
                        ->integerNode('priority')
                            ->info('Priority in the loading order. A high value will have higher precedence in overriding XSL templates.')
                            ->defaultValue(0)
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('edit_custom_tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".')
                ->example(
                    [
                        'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl',
                        'priority' => 10,
                    ]
                )
                ->prototype('array')
                    ->children()
                        ->scalarNode('path')
                            ->info('Path of the XSL stylesheet to load.')
                            ->isRequired()
                        ->end()
                        ->integerNode('priority')
                            ->info('Priority in the loading order. A high value will have higher precedence in overriding XSL templates.')
                            ->defaultValue(0)
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('input_custom_tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".')
                ->example(
                    [
                        'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl',
                        'priority' => 10,
                    ]
                )
                ->prototype('array')
                    ->children()
                        ->scalarNode('path')
                            ->info('Path of the XSL stylesheet to load.')
                            ->isRequired()
                        ->end()
                        ->integerNode('priority')
                            ->info('Priority in the loading order. A high value will have higher precedence in overriding XSL templates.')
                            ->defaultValue(0)
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('tags')
                ->setDeprecated('DEPRECATED. Configure custom tags using custom_tags node')
                ->info('RichText template tags configuration.')
                ->useAttributeAsKey('key')
                ->normalizeKeys(false)
                ->prototype('array')
                    ->info(
                        "Name of RichText template tag.\n" .
                        "'default' and 'default_inline' tag names are reserved for fallback."
                    )
                    ->example('math_equation')
                    ->children()
                        ->append(
                            $this->getTemplateNodeDefinition(
                                'Template used for rendering RichText template tag.',
                                'MyBundle:FieldType/RichText/tag:math_equation.html.twig'
                            )
                        )
                        ->variableNode('config')
                            ->info('Tag configuration, arbitrary configuration is allowed here.')
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function setupDeprecatedConfiguration ( NodeBuilder $ nodeBuilder ) { $ nodeBuilder -> arrayNode ( 'output_custom_tags' ) -> setDeprecated ( 'DEPRECATED. Configure custom tags using custom_tags node' ) -> info ( 'Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".' ) -> example ( [ 'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl' , 'priority' => 10 , ] ) -> prototype ( 'array' ) -> children ( ) -> scalarNode ( 'path' ) -> info ( 'Path of the XSL stylesheet to load.' ) -> isRequired ( ) -> end ( ) -> integerNode ( 'priority' ) -> info ( 'Priority in the loading order. A high value will have higher precedence in overriding XSL templates.' ) -> defaultValue ( 0 ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> arrayNode ( 'edit_custom_tags' ) -> setDeprecated ( 'DEPRECATED. Configure custom tags using custom_tags node' ) -> info ( 'Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".' ) -> example ( [ 'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl' , 'priority' => 10 , ] ) -> prototype ( 'array' ) -> children ( ) -> scalarNode ( 'path' ) -> info ( 'Path of the XSL stylesheet to load.' ) -> isRequired ( ) -> end ( ) -> integerNode ( 'priority' ) -> info ( 'Priority in the loading order. A high value will have higher precedence in overriding XSL templates.' ) -> defaultValue ( 0 ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> arrayNode ( 'input_custom_tags' ) -> setDeprecated ( 'DEPRECATED. Configure custom tags using custom_tags node' ) -> info ( 'Custom XSL stylesheets to use for RichText transformation to HTML5. Useful for "custom tags".' ) -> example ( [ 'path' => '%kernel.root_dir%/../src/Acme/TestBundle/Resources/myTag.xsl' , 'priority' => 10 , ] ) -> prototype ( 'array' ) -> children ( ) -> scalarNode ( 'path' ) -> info ( 'Path of the XSL stylesheet to load.' ) -> isRequired ( ) -> end ( ) -> integerNode ( 'priority' ) -> info ( 'Priority in the loading order. A high value will have higher precedence in overriding XSL templates.' ) -> defaultValue ( 0 ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> arrayNode ( 'tags' ) -> setDeprecated ( 'DEPRECATED. Configure custom tags using custom_tags node' ) -> info ( 'RichText template tags configuration.' ) -> useAttributeAsKey ( 'key' ) -> normalizeKeys ( false ) -> prototype ( 'array' ) -> info ( "Name of RichText template tag.\n" . "'default' and 'default_inline' tag names are reserved for fallback." ) -> example ( 'math_equation' ) -> children ( ) -> append ( $ this -> getTemplateNodeDefinition ( 'Template used for rendering RichText template tag.' , 'MyBundle:FieldType/RichText/tag:math_equation.html.twig' ) ) -> variableNode ( 'config' ) -> info ( 'Tag configuration, arbitrary configuration is allowed here.' ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) ; }
Add BC setup for deprecated configuration.

Note: kept in separate method for readability.

@param \Symfony\Component\Config\Definition\Builder\NodeBuilder $nodeBuilder
Add BC setup for deprecated configuration .