for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symplify\PHP7_Sculpin\Bundle\SculpinBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('sculpin');
$rootNode
->children()
->scalarNode('source_dir')->defaultValue('%sculpin.project_dir%/source')->end()
->scalarNode('output_dir')->defaultValue('%sculpin.project_dir%/output')->end()
->arrayNode('raw')
->prototype('scalar')->end()
->end()
->scalarNode('permalink')->defaultValue('pretty')->end()
->end();
return $treeBuilder;
}