vendor/paymentsuite/paymentsuite/src/PaymentSuite/PaymentCoreBundle/DependencyInjection/Configuration.php line 34

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the PaymentSuite package.
  4.  *
  5.  * Copyright (c) 2013-2016 Marc Morera
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  *
  10.  * Feel free to edit as you please, and have fun.
  11.  *
  12.  * @author Marc Morera <yuhu@mmoreram.com>
  13.  */
  14. namespace PaymentSuite\PaymentCoreBundle\DependencyInjection;
  15. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  16. use Symfony\Component\Config\Definition\ConfigurationInterface;
  17. /**
  18.  * This is the class that validates and merges configuration from your app/config files.
  19.  *
  20.  * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
  21.  */
  22. class Configuration implements ConfigurationInterface
  23. {
  24.     /**
  25.      * {@inheritdoc}
  26.      */
  27.     public function getConfigTreeBuilder()
  28.     {
  29.         $treeBuilder = new TreeBuilder();
  30.         $rootNode $treeBuilder->root('payment_core');
  31.         $rootNode
  32.             ->children()
  33.                 ->booleanNode('logger')
  34.                     ->defaultTrue()
  35.                 ->end()
  36.             ->end();
  37.         return $treeBuilder;
  38.     }
  39. }