PartKeepr\CoreBundle\DependencyInjection\Configuration::getConfigTreeBuilder PHP Method

getConfigTreeBuilder() public method

    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('partkeepr');
        $rootNode->children()->scalarNode('authentication_provider')->cannotBeEmpty()->defaultValue('PartKeepr.Auth.WSSEAuthenticationProvider')->info('The authentication provider for the frontend. Available choices: PartKeepr.Auth.WSSEAuthenticationProvider and PartKeepr.Auth.HTTPBasicAuthenticationProvider')->end()->scalarNode('tip_of_the_day_uri')->cannotBeEmpty()->defaultValue('https://partkeepr.org/tips/%s')->info('The URI where tips are loaded from')->end()->arrayNode('required_cronjobs')->treatNullLike([])->prototype('scalar')->end()->defaultValue(['partkeepr:cron:synctips'])->end()->scalarNode('tip_of_the_day_list')->cannotBeEmpty()->defaultValue('https://partkeepr.org/tips.json')->info('The URI from where the tip database is loaded')->end()->scalarNode('image_cache_directory')->cannotBeEmpty()->isRequired()->info('The image cache directory')->end()->arrayNode('directories')->prototype('scalar')->end()->end()->booleanNode('cronjob_check')->defaultTrue()->info('Whether the system should check if cronjobs are running or not')->end()->end();
        return $treeBuilder;
    }