for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the SaasProviderBundle package.
* (c) Fluxter <http://fluxter.net/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fluxter\SaasProviderBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder('saas_provider');
$treeBuilder->getRootNode()
->children()
->scalarNode('client_entity')->isRequired()->cannotBeEmpty()->end()
->scalarNode('global_url')->end()
->scalarNode('apikey')->isRequired()->cannotBeEmpty()->end()
->end()
->end();
return $treeBuilder;
}