Skip to content

Instantly share code, notes, and snippets.

@lucasaba
Created December 27, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasaba/9aaef7785d183febe009105166633147 to your computer and use it in GitHub Desktop.
Save lucasaba/9aaef7785d183febe009105166633147 to your computer and use it in GitHub Desktop.
<?php
namespace Epod4\Moduli\ProtocolloBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('epod4_protocollo');
$rootNode
->children()
->arrayNode('imap')
->children()
->scalarNode('cartella_ricevute')
->isRequired()
->defaultValue('ricevute')
->info('Nome della cartella IMAP in cui salvare le ricevute')
->end()
->scalarNode('cartella_protocollate')
->isRequired()
->defaultValue('protocollati')
->info('Nome della cartella IMAP in cui salvare le PEC protocollate')
->end()
->scalarNode('cartella_inviate')
->isRequired()
->defaultValue('Inviata')
->info('Nome della cartella IMAP in cui salvare le PEC inviate')
->end()
->end()
->end()
->end()
;
return $treeBuilder;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment