* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\ZendBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; /** * This class contains the configuration information for the bundle * * This information is solely responsible for how the different configuration * sections are normalized, and merged. * * @author Christophe Coevoet */ class Configuration { /** * Generates the configuration tree. * * @return \Symfony\Component\Config\Definition\ArrayNode The config tree */ public function getConfigTree() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('zend'); $rootNode ->children() ->arrayNode('logger') ->canBeUnset() ->children() ->scalarNode('priority')->defaultValue('INFO')->end() ->scalarNode('path')->defaultValue('%kernel.logs_dir%/%kernel.environment%.log')->end() ->booleanNode('log_errors')->defaultFalse()->end() ->end() ->end() ->end() ; return $treeBuilder->buildTree(); } }