vendor/globunet/geolocation-bundle/DependencyInjection/Configuration.php line 21

Open in your IDE?
  1. <?php
  2. namespace Globunet\GeolocationBundle\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/configuration.html}
  9.  */
  10. class Configuration implements ConfigurationInterface
  11. {
  12.     /**
  13.      * {@inheritdoc}
  14.      */
  15.     public function getConfigTreeBuilder()
  16.     {
  17.         $treeBuilder = new TreeBuilder();
  18.         $rootNode $treeBuilder->root('globunet_geolocation');
  19.         $rootNode
  20.             ->children()
  21.                 ->arrayNode('google')/*->addDefaultsIfNotSet()*/
  22.                     ->children()
  23.                         ->scalarNode('api_key')/*->defaultValue("smtp")*/->end()
  24.                         ->arrayNode('map')
  25.                             ->children()
  26.                                 ->scalarNode('zoom')->defaultValue(18)->end()
  27.                             ->end()
  28.                         ->end()
  29.                     ->end()
  30.                 ->end()
  31.             ->end()
  32.         ;
  33.         return $treeBuilder;
  34.     }
  35. }