vendor/rawafed/newsletter-bundle/DependencyInjection/Configuration.php line 21

Open in your IDE?
  1. <?php
  2. namespace Rawafed\NewsletterBundle\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()
  16.     {
  17.         $treeBuilder = new TreeBuilder();
  18.         $rootNode $treeBuilder->root('newsletter');
  19.         $rootNode
  20.             ->children()
  21.                 ->scalarNode('guest_group_id')->defaultNull()->end()
  22.                 ->scalarNode('auto_activation')->defaultValue(true)->end()
  23.                 ->scalarNode('sender_name')->defaultValue('%webmaster_sender_name%')->end()
  24.                 ->scalarNode('sender_email')->defaultValue('%webmaster_email%')->end()
  25.             ->end()
  26.         ;
  27.         // Here you should define the parameters that are allowed to
  28.         // configure your bundle. See the documentation linked above for
  29.         // more information on that topic.
  30.         return $treeBuilder;
  31.     }
  32. }