Repository URL to install this package:
|
Version:
6.2.1 ▾
|
<?php
/**
* Created by IntelliJ IDEA.
* User: martino
* Date: 12/05/17
* Time: 20:38
*/
namespace DigitalAscetic\MailBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('digital_ascetic_mail');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->canBeEnabled()
->children()
->arrayNode('providers')->isRequired()->useAttributeAsKey('name')->scalarPrototype()->end()->end()
->end()
->end();
return $treeBuilder;
}
}