vendor/uvdesk/mailbox-component/DependencyInjection/Configuration.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\MailboxBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. class Configuration implements ConfigurationInterface
  6. {
  7.     public function getConfigTreeBuilder()
  8.     {
  9.         $treeBuilder = new TreeBuilder();
  10.         $treeBuilder->root('uvdesk_mailbox')
  11.             ->children()
  12.                 ->node('emails''array')
  13.                     ->children()
  14.                         ->node('delimiter''scalar')->defaultValue('<-- Please add content above this line -->')->end()
  15.                         ->node('enable_delimiter''boolean')->defaultValue(false)->end()
  16.                     ->end()
  17.                 ->end()
  18.                 ->node('mailboxes''array')
  19.                     ->arrayPrototype()
  20.                         ->children()
  21.                             ->node('name''scalar')->cannotBeEmpty()->end()
  22.                             ->node('enabled''boolean')->defaultFalse()->end()
  23.                             ->node('smtp_server''array')
  24.                                 ->children()
  25.                                     ->node('mailer_id''scalar')->defaultValue('default')->end()
  26.                                 ->end()
  27.                             ->end()
  28.                             ->node('imap_server''array')
  29.                                 ->children()
  30.                                     ->node('host''scalar')->cannotBeEmpty()->end()
  31.                                     ->node('username''scalar')->cannotBeEmpty()->end()
  32.                                     ->node('password''scalar')->end()
  33.                                 ->end()
  34.                             ->end() 
  35.                         ->end()
  36.                     ->end()
  37.                 ->end()
  38.             ->end();
  39.         return $treeBuilder;
  40.     }
  41. }