File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,30 @@ public function getConnection()
446
446
}
447
447
448
448
/**
449
- * Specify the name of the connection that should be used to manage locks.
449
+ * Set the underlying database connection.
450
+ *
451
+ * @param \Illuminate\Database\ConnectionInterface $connection
452
+ * @return $this
453
+ */
454
+ public function setConnection ($ connection )
455
+ {
456
+ $ this ->connection = $ connection ;
457
+
458
+ return $ this ;
459
+ }
460
+
461
+ /**
462
+ * Get the connection used to manage locks.
463
+ *
464
+ * @return \Illuminate\Database\ConnectionInterface
465
+ */
466
+ public function getLockConnection ()
467
+ {
468
+ return $ this ->lockConnection ;
469
+ }
470
+
471
+ /**
472
+ * Specify the connection that should be used to manage locks.
450
473
*
451
474
* @param \Illuminate\Database\ConnectionInterface $connection
452
475
* @return $this
You can’t perform that action at this time.
0 commit comments