mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Close connections after every async job that uses the db
This commit is contained in:
@@ -11,7 +11,7 @@ class CloseDbConnectionEventListener
|
||||
/** @var callable */
|
||||
private $wrapped;
|
||||
|
||||
public function __construct(private ReopeningEntityManagerInterface $em, callable $wrapped)
|
||||
public function __construct(private readonly ReopeningEntityManagerInterface $em, callable $wrapped)
|
||||
{
|
||||
$this->wrapped = $wrapped;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user