for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Guarded Authentication package.
*
* (c) Jafar Jabr <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Jafar\Bundle\GuardedAuthenticationBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @author Jafar Jabr <[email protected]>
* Class Configuration
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('jafar_guarded_authentication');
$rootNode
->children()
->scalarNode('pass_phrase')
->end()
->scalarNode('token_ttl')
->scalarNode('login_route')
->scalarNode('home_page_route')
->scalarNode('api_login_route')
->scalarNode('api_home_page_route')
->end();
return $treeBuilder;
}