<?php
/*
* This file is part of the PaymentSuite package.
*
* Copyright (c) 2013-2016 Marc Morera
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.com>
*/
namespace PaymentSuite\FreePaymentBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use PaymentSuite\PaymentCoreBundle\DependencyInjection\Abstracts\AbstractPaymentSuiteConfiguration;
/**
* This is the class that validates and merges configuration from your app/config files.
*/
class Configuration extends AbstractPaymentSuiteConfiguration
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('free_payment');
$rootNode
->children()
->append($this->addRouteConfiguration('payment_success'))
->end();
$this->addSettingsProviderConfiguration($rootNode);
return $treeBuilder;
}
}