vendor/emprel/datasource-bundle/DependencyInjection/Configuration.php line 32

Open in your IDE?
  1. <?php
  2. /*
  3.  * Este arquivo é parte do package DataSource Bundle.
  4.  *
  5.  * (c) Laino Santos <lainosantos@recife.pe.gov.br>
  6.  *
  7.  * Para informações completas sobre copyright e licença, por favor ver o
  8.  * arquivo LICENCE distribuído juntamente com este código.
  9.  */
  10. namespace Emprel\DataSource\Bundle\DependencyInjection;
  11. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  12. use Symfony\Component\Config\Definition\ConfigurationInterface;
  13. /**
  14.  * {@inheritdoc}
  15.  *
  16.  * @package Emprel\DataSource\Bundle\DependencyInjection
  17.  * @author Laino Santos <lainosantos@recife.pe.gov.br>
  18.  */
  19. class Configuration implements ConfigurationInterface
  20. {
  21.     /**
  22.      * {@inheritdoc}
  23.      */
  24.     public function getConfigTreeBuilder()
  25.     {
  26.         $treeBuilder = new TreeBuilder();
  27.         $rootNode $treeBuilder->root('emprel_datasource');
  28.         $rootNode
  29.             ->fixXmlConfig('datasource')
  30.             ->children()
  31.                 ->arrayNode('datasources')
  32.                     ->prototype('scalar')->end()
  33.                 ->end()
  34.             ->end();
  35.         return $treeBuilder;
  36.     }
  37. }