for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Bldr.io
*
* (c) Aaron Scherer <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE
*/
namespace Bldr\Block\Notify;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
* @author Aaron Scherer <[email protected]>
class Configuration implements ConfigurationInterface
{
* {@inheritDoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('notify');
$rootNode
->children()
->arrayNode('smtp')
->scalarNode('host')->isRequired()->end()
->integerNode('port')->end()
->enumNode('security')
->values([null, 'ssl'])
->end()
->scalarNode('username')->isRequired()->end()
->scalarNode('password')->isRequired()->end()
;
return $treeBuilder;
}