vendor/paymentsuite/paymentsuite/src/PaymentSuite/FreePaymentBundle/DependencyInjection/Configuration.php line 32

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\FreePaymentBundle\DependencyInjection;
  15. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  16. use PaymentSuite\PaymentCoreBundle\DependencyInjection\Abstracts\AbstractPaymentSuiteConfiguration;
  17. /**
  18.  * This is the class that validates and merges configuration from your app/config files.
  19.  */
  20. class Configuration extends AbstractPaymentSuiteConfiguration
  21. {
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function getConfigTreeBuilder()
  26.     {
  27.         $treeBuilder = new TreeBuilder();
  28.         $rootNode $treeBuilder->root('free_payment');
  29.         $rootNode
  30.             ->children()
  31.                 ->append($this->addRouteConfiguration('payment_success'))
  32.             ->end();
  33.         $this->addSettingsProviderConfiguration($rootNode);
  34.         return $treeBuilder;
  35.     }
  36. }