Created
December 27, 2017 14:45
-
-
Save lucasaba/9aaef7785d183febe009105166633147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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