File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ public function getConfigTreeBuilder()
28
28
{
29
29
$ treeBuilder = new TreeBuilder ('mongo_db_migrations ' , 'array ' );
30
30
$ rootNode = method_exists (TreeBuilder::class, 'getRootNode ' ) ? $ treeBuilder ->getRootNode () : $ treeBuilder ->root ('mongo_db_migrations ' , 'array ' );
31
-
31
+
32
32
$ rootNode
33
33
->children ()
34
34
->scalarNode ('collection_name ' )->defaultValue ('migration_versions ' )->cannotBeEmpty ()->end ()
35
35
->scalarNode ('database_name ' )->cannotBeEmpty ()->end ()
36
- ->scalarNode ('dir_name ' )->defaultValue ('%kernel.root_dir% /MongoDBMigrations ' )->cannotBeEmpty ()->end ()
36
+ ->scalarNode ('dir_name ' )->defaultValue ('%kernel.project_dir%/src /MongoDBMigrations ' )->cannotBeEmpty ()->end ()
37
37
->scalarNode ('name ' )->defaultValue ('Application MongoDB Migrations ' )->end ()
38
38
->scalarNode ('namespace ' )->defaultValue ('Application\MongoDBMigrations ' )->cannotBeEmpty ()->end ()
39
39
->scalarNode ('script_dir_name ' )->end ()
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ Add following configuration lines to `config.yml` file.
50
50
mongo_db_migrations :
51
51
collection_name : " migration_versions"
52
52
database_name : " opensky_devo"
53
- dir_name : " %kernel.root_dir%/.. /src/OpenSky/Bundle/MainBundle/Migrations/MongoDB"
54
- script_dir_name : " %kernel.root_dir %/scripts"
53
+ dir_name : " %kernel.project_dir% /src/OpenSky/Bundle/MainBundle/Migrations/MongoDB"
54
+ script_dir_name : " %kernel.project_dir %/scripts"
55
55
name : " OpenSky DEVO MongoDB Migrations"
56
56
namespace : " OpenSky\\ Bundle\\ MainBundle\\ MigrationsMongoDB"
57
57
` ` `
You can’t perform that action at this time.
0 commit comments