<?php
namespace Webkul\UVDesk\MailboxBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('uvdesk_mailbox')
->children()
->node('emails', 'array')
->children()
->node('delimiter', 'scalar')->defaultValue('<-- Please add content above this line -->')->end()
->node('enable_delimiter', 'boolean')->defaultValue(false)->end()
->end()
->end()
->node('mailboxes', 'array')
->arrayPrototype()
->children()
->node('name', 'scalar')->cannotBeEmpty()->end()
->node('enabled', 'boolean')->defaultFalse()->end()
->node('smtp_server', 'array')
->children()
->node('mailer_id', 'scalar')->defaultValue('default')->end()
->end()
->end()
->node('imap_server', 'array')
->children()
->node('host', 'scalar')->cannotBeEmpty()->end()
->node('username', 'scalar')->cannotBeEmpty()->end()
->node('password', 'scalar')->end()
->end()
->end()
->end()
->end()
->end()
->end();
return $treeBuilder;
}
}