vendor/massive/build-bundle/DependencyInjection/Configuration.php line 20

Open in your IDE?
  1. <?php
  2. namespace Massive\Bundle\BuildBundle\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('massive_art_build');
  19.         $rootNode
  20.             ->children()
  21.                 ->scalarNode('command_class')->defaultValue('Massive\Bundle\BuildBundle\Command\BuildCommand')->end()
  22.                 ->arrayNode('targets')
  23.                     ->useAttributeAsKey('name')
  24.                     ->prototype('array')
  25.                         ->children()
  26.                             ->arrayNode('dependencies')
  27.                                 ->useAttributeAsKey('key')
  28.                                 ->prototype('array')
  29.                                     ->prototype('scalar')->end()
  30.                                 ->end()
  31.                             ->end()
  32.                         ->end()
  33.                     ->end()
  34.                 ->end()
  35.             ->end();
  36.         return $treeBuilder;
  37.     }
  38. }