diff -r bbdc7f9aa25e -r 03b14b0fe101 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 @@ + + */ +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(); + } +}