src/Snk/LanguageSwitchBundle/DependencyInjection/Configuration.php line 25

Open in your IDE?
  1. <?php
  2. /**
  3.  * @author      Lukas Huppertz (lukas.huppertz@snk.de)
  4.  * @copyright   Copyright (c) 2019 schoene neue kinder GmbH (http://www.snk.de)
  5.  */
  6. namespace Snk\LanguageSwitchBundle\DependencyInjection;
  7. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  8. use Symfony\Component\Config\Definition\ConfigurationInterface;
  9. /**
  10.  * This is the class that validates and merges configuration from your app/config files.
  11.  *
  12.  * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
  13.  */
  14. class Configuration implements ConfigurationInterface
  15. {
  16.     /**
  17.      * {@inheritdoc}
  18.      */
  19.     public function getConfigTreeBuilder()
  20.     {
  21.         $treeBuilder = new TreeBuilder();
  22.         $rootNode $treeBuilder->root('snk_language_switch');
  23.         // Here you should define the parameters that are allowed to
  24.         // configure your bundle. See the documentation linked above for
  25.         // more information on that topic.
  26.         return $treeBuilder;
  27.     }
  28. }