vendor/limenius/react-bundle/DependencyInjection/Configuration.php line 19

Open in your IDE?
  1. <?php
  2. namespace Limenius\ReactBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. /**
  6.  * Class Configuration
  7.  */
  8. class Configuration implements ConfigurationInterface
  9. {
  10.     /**
  11.      * {@inheritdoc}
  12.      */
  13.     public function getConfigTreeBuilder()
  14.     {
  15.         $treeBuilder = new TreeBuilder();
  16.         $rootNode $treeBuilder->root('limenius_react');
  17.         $rootNode
  18.             ->children()
  19.                 ->enumNode('default_rendering')
  20.                     ->values(array('server_side''client_side''both'))
  21.                     ->defaultValue('both')
  22.                 ->end()
  23.                 ->arrayNode('serverside_rendering')
  24.                     ->addDefaultsIfNotSet()
  25.                     ->children()
  26.                         ->booleanNode('fail_loud')
  27.                             ->defaultFalse()
  28.                         ->end()
  29.                         ->booleanNode('trace')
  30.                             ->defaultFalse()
  31.                         ->end()
  32.                         ->enumNode('mode')
  33.                             ->values(array('phpexecjs''external_server'))
  34.                             ->defaultValue('phpexecjs')
  35.                         ->end()
  36.                         ->scalarNode('server_bundle_path')
  37.                             ->defaultNull()
  38.                         ->end()
  39.                         ->scalarNode('server_socket_path')
  40.                             ->defaultNull()
  41.                         ->end()
  42.                         ->arrayNode('cache')
  43.                             ->addDefaultsIfNotSet()
  44.                             ->children()
  45.                                 ->booleanNode('enabled')
  46.                                     ->defaultFalse()
  47.                                 ->end()
  48.                                 ->scalarNode('key')
  49.                                     ->defaultValue('app')
  50.                                 ->end()
  51.                             ->end()
  52.                         ->end()
  53.                     ->end()
  54.                 ->end()
  55.             ->end();
  56.         return $treeBuilder;
  57.     }
  58. }