Skip to content

[12.x] Add DatabaseStore::setConnection(), fix docblock for setLockConnection() #56554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add getLockConnection() for consistency
  • Loading branch information
stancl committed Aug 5, 2025
commit 5561276a9f8cb3bd905384e81553ab9f783ba26b
10 changes: 10 additions & 0 deletions src/Illuminate/Cache/DatabaseStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,16 @@ public function getConnection()
return $this->connection;
}

/**
* Get the connection used to manage locks.
*
* @return \Illuminate\Database\ConnectionInterface
*/
public function getLockConnection()
{
return $this->lockConnection;
}

/**
* Set the underlying database connection.
*
Expand Down
Loading