Crunz\Configuration\Definition::getConfigTreeBuilder PHP Method

getConfigTreeBuilder() public method

    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('crunz');
        $rootNode->children()->scalarNode('source')->cannotBeEmpty()->info('path to the tasks directory' . PHP_EOL)->end()->scalarNode('suffix')->defaultValue('Tasks.php')->info('The suffix for filenames' . PHP_EOL)->end()->booleanNode('log_errors')->defaultFalse()->info('Flag for logging errors' . PHP_EOL)->end()->scalarNode('errors_log_file')->defaultValue('/dev/null')->info('Path to errors log' . PHP_EOL)->end()->booleanNode('log_output')->defaultFalse()->info('Flag for logging output' . PHP_EOL)->end()->scalarNode('output_log_file')->defaultValue('/dev/null')->info('Path to output logs' . PHP_EOL)->end()->scalarNode('email_output')->defaultFalse()->info('Email the event\'s output' . PHP_EOL)->end()->scalarNode('email_errors')->defaultFalse()->info('Notify by email in case of an error' . PHP_EOL)->end()->arrayNode('mailer')->children()->scalarNode('transport')->info('The type the Swift transporter' . PHP_EOL)->end()->arrayNode('recipients')->prototype('scalar')->end()->info('List of the email recipients' . PHP_EOL)->end()->scalarNode('sender_name')->info('The sender name' . PHP_EOL)->end()->scalarNode('sender_email')->info('The sender email' . PHP_EOL)->end()->end()->end()->arrayNode('smtp')->children()->scalarNode('host')->info('SMTP host' . PHP_EOL)->end()->scalarNode('port')->info('SMTP port' . PHP_EOL)->end()->scalarNode('username')->info('SMTP username' . PHP_EOL)->end()->scalarNode('password')->info('SMTP password' . PHP_EOL)->end()->scalarNode('encryption')->info('SMTP encryption' . PHP_EOL)->end()->end()->end()->end();
        return $treeBuilder;
    }