vendor/simpledot/edm-bundle/AWEdmBundle/DependencyInjection/Configuration.php line 21

Open in your IDE?
  1. <?php
  2. namespace AWEdmBundle\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('aw_edm');
  19.         $rootNode
  20.             ->children()
  21.                 ->arrayNode('amazon_s3')
  22.                     ->children()
  23.                     ->scalarNode('enable')
  24.                         ->defaultFalse()
  25.                         ->treatNullLike(false)
  26.                     ->end()
  27.                     ->scalarNode('aws_id')
  28.                         ->defaultNull()
  29.                     ->end()
  30.                     ->scalarNode('aws_private')
  31.                         ->defaultNull()
  32.                     ->end()
  33.                     ->scalarNode('aws_s3_bucket')
  34.                         ->defaultNull()
  35.                     ->end()
  36.                     ->scalarNode('aws_region')
  37.                         ->defaultNull()
  38.                     ->end()
  39.                     ->scalarNode('acl')
  40.                         ->defaultValue('private')
  41.                     ->end()
  42.                 ->end()
  43.             ->end();
  44.         // Here you should define the parameters that are allowed to
  45.         // configure your bundle. See the documentation linked above for
  46.         // more information on that topic.
  47.         return $treeBuilder;
  48.     }
  49. }