vendor/debril/rss-atom-bundle/Debril/RssAtomBundle/DependencyInjection/Configuration.php line 20

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Debril\RssAtomBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. /**
  6.  * This is the class that validates and merges configuration from your app/config files.
  7.  *
  8.  * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
  9.  */
  10. class Configuration implements ConfigurationInterface
  11. {
  12.     /**
  13.      * {@inheritDoc}
  14.      */
  15.     public function getConfigTreeBuilder() : TreeBuilder
  16.     {
  17.         $treeBuilder = new TreeBuilder();
  18.         $treeBuilder->root('debril_rss_atom')
  19.                 ->children()
  20.                     ->booleanNode('private')
  21.                         ->info('Change cache headers so the RSS feed is not cached by public caches (like reverse-proxies...).')
  22.                         ->defaultValue(false)
  23.                     ->end()
  24.                     ->booleanNode('force_refresh')
  25.                         ->info('Do not send 304 status if the feed has not been modified since last hit')
  26.                         ->defaultValue(false)
  27.                     ->end()
  28.                     ->scalarNode('content_type_json')
  29.                         ->info('Content-Type header value to use for json feed generation.')
  30.                         ->defaultValue('application/json')
  31.                     ->end()
  32.                     ->scalarNode('content_type_xml')
  33.                         ->info('Content-Type header value to use for xml feed generation (atom and rss).')
  34.                         ->defaultValue('application/xhtml+xml')
  35.                     ->end()
  36.                     ->arrayNode('date_formats')
  37.                         ->prototype('scalar')->end()
  38.                     ->end()
  39.                 ->end()
  40.         ;
  41.         // Here you should define the parameters that are allowed to
  42.         // configure your bundle. See the documentation linked above for
  43.         // more information on that topic.
  44.         return $treeBuilder;
  45.     }
  46. }