File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,12 +256,12 @@ function ($translator, $app) {
256256 );
257257
258258 // Mongodb.
259- $ mongdbConfig = $ this ['config ' ]['mongodb ' ];
259+ $ mongodbConfig = $ this ['config ' ]['mongodb ' ];
260260 $ client = new Client (
261- 'mongodb:// ' . $ mongdbConfig ['default ' ]['host ' ] . ': ' . $ mongdbConfig ['default ' ]['port ' ],
261+ 'mongodb:// ' . $ mongodbConfig ['default ' ]['host ' ] . ': ' . $ mongodbConfig ['default ' ]['port ' ],
262262 [
263263 [
264- 'db ' => $ mongdbConfig ['default ' ]['dbname ' ],
264+ 'db ' => $ mongodbConfig ['default ' ]['dbname ' ],
265265 ],
266266 ]
267267 );
@@ -283,7 +283,7 @@ function ($translator, $app) {
283283 'mongodbodm.hydrator_dir ' => $ this ['config ' ]['odm_orm ' ]['hydrator_dir ' ],
284284 'mongodbodm.auto_generate_hydrators ' => Configuration::AUTOGENERATE_FILE_NOT_EXISTS ,
285285 "mongodbodm.dm.options " => [
286- "database " => " widgets " ,
286+ "database " => $ mongodbConfig [ ' default ' ][ ' dbname ' ] ,
287287 "mappings " => [
288288 [
289289 "type " => "annotation " ,
You can’t perform that action at this time.
0 commit comments