mirror of
https://github.com/danog/postgres.git
synced 2024-11-30 04:29:12 +01:00
Remove circular reference
This commit is contained in:
parent
0b530983c2
commit
8a6767f99e
@ -21,9 +21,6 @@ abstract class Connection implements Link, Handle
|
|||||||
/** @var Deferred|null Used to only allow one transaction at a time. */
|
/** @var Deferred|null Used to only allow one transaction at a time. */
|
||||||
private $busy;
|
private $busy;
|
||||||
|
|
||||||
/** @var callable */
|
|
||||||
protected $release;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ConnectionConfig $connectionConfig
|
* @param ConnectionConfig $connectionConfig
|
||||||
* @param CancellationToken $token
|
* @param CancellationToken $token
|
||||||
@ -38,7 +35,6 @@ abstract class Connection implements Link, Handle
|
|||||||
public function __construct(Handle $handle)
|
public function __construct(Handle $handle)
|
||||||
{
|
{
|
||||||
$this->handle = $handle;
|
$this->handle = $handle;
|
||||||
$this->release = $this->callableFromInstanceMethod("release");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -213,7 +209,7 @@ abstract class Connection implements Link, Handle
|
|||||||
|
|
||||||
$this->busy = new Deferred;
|
$this->busy = new Deferred;
|
||||||
|
|
||||||
return new ConnectionTransaction($this->handle, $this->release, $isolation);
|
return new ConnectionTransaction($this->handle, $this->callableFromInstanceMethod("release"), $isolation);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user