for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
//----------------------------------------------------------------------
//
// Copyright (C) 2017 Artem Rodygin
// You should have received a copy of the MIT License along with
// this file. If not, see <http://opensource.org/licenses/MIT>.
namespace Pignus\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Validates and merges configuration from app/config files.
*
* @see http://symfony.com/doc/current/cookbook/bundles/configuration.html
*/
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('pignus');
$rootNode
->children()
->booleanNode('unauthorized_request')
->defaultFalse()
->end()
->arrayNode('login')
->requiresAtLeastOneElement()
->prototype('scalar')->end()
->end();
return $treeBuilder;
}