vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle/DependencyInjection/Configuration.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle/DependencyInjection/Configuration.php Fri Nov 25 18:55:43 2011 +0100
@@ -0,0 +1,35 @@
+<?php
+
+namespace Symfony\Bundle\DoctrineMigrationsBundle\DependencyInjection;
+
+use Symfony\Component\Config\Definition\Builder\TreeBuilder;
+
+/**
+ * DoctrineMigrationsExtension configuration structure.
+ *
+ * @author Lukas Kahwe Smith <smith@pooteeweet.org>
+ */
+class Configuration
+{
+ /**
+ * Generates the configuration tree.
+ *
+ * @return \Symfony\Component\Config\Definition\ArrayNode The config tree
+ */
+ public function getConfigTree()
+ {
+ $treeBuilder = new TreeBuilder();
+ $rootNode = $treeBuilder->root('doctrine_migrations', 'array');
+
+ $rootNode
+ ->children()
+ ->scalarNode('dir_name')->defaultValue('%kernel.root_dir%/DoctrineMigrations')->cannotBeEmpty()->end()
+ ->scalarNode('namespace')->defaultValue('Application\Migrations')->cannotBeEmpty()->end()
+ ->scalarNode('table_name')->defaultValue('migration_versions')->cannotBeEmpty()->end()
+ ->scalarNode('name')->defaultValue('Application Migrations')->end()
+ ->end()
+ ;
+
+ return $treeBuilder->buildTree();
+ }
+}