sterntours/vendor/sensio/generator-bundle/Resources/skeleton/bundle/Configuration.php.twig
2020-07-09 12:49:32 +02:00

37 lines
1.1 KiB
Twig

<?php
namespace {{ namespace }}\DependencyInjection;
{% block use_statements %}
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
{% endblock use_statements %}
/**
{% block phpdoc_class_header %}
* This is the class that validates and merges configuration from your app/config files.
{% endblock phpdoc_class_header %}
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
*/
{% block class_definition %}
class Configuration implements ConfigurationInterface
{% endblock class_definition %}
{
{% block class_body %}
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('{{ extension_alias }}');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
{% endblock class_body %}
}