for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Lug package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Lug\Bundle\StorageBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @author GeLo <[email protected]>
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$treeBuilder
->root('lug_storage')
->children()
->arrayNode('cookie')
->canBeEnabled()
->end()
->arrayNode('doctrine')
->scalarNode('service')
->isRequired()
->cannotBeEmpty()
->arrayNode('session')
->end();
return $treeBuilder;
}