File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ protected function registerFailedJobServices()
54
54
*/
55
55
protected function mongoFailedJobProvider (array $ config ): MongoFailedJobProvider
56
56
{
57
- if (! isset ($ config ['collection ' ]) && isset ($ config ['table ' ])) {
58
- trigger_error ('Since mongodb/laravel-mongodb 4.4: Using "table " option for the queue is deprecated. Use "collection " instead. ' , E_USER_DEPRECATED );
59
- $ config ['collection ' ] = $ config ['table ' ];
57
+ if (! isset ($ config ['table ' ]) && isset ($ config ['collection ' ])) {
58
+ trigger_error ('Since mongodb/laravel-mongodb 4.4: Using "collection " option for the queue is deprecated. Use "table " instead. ' , E_USER_DEPRECATED );
59
+ $ config ['table ' ] = $ config ['collection ' ];
60
60
}
61
61
62
62
return new MongoFailedJobProvider (
63
63
$ this ->app ['db ' ],
64
64
$ config ['database ' ] ?? null ,
65
- $ config ['collection ' ] ?? 'failed_jobs ' ,
65
+ $ config ['table ' ] ?? 'failed_jobs ' ,
66
66
);
67
67
}
68
68
}
You can’t perform that action at this time.
0 commit comments