Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-20 19:04:15 +08:00
parent b10ffd832a
commit 5aa5d3ea13
4 changed files with 24 additions and 21 deletions
+5 -5
View File
@@ -75,11 +75,11 @@ class Connection extends Component
*/
public function init()
{
$this->eventProvider->on(OnWorkerStop::class, [$this, 'clear_connection'], 0);
$this->eventProvider->on(OnWorkerExit::class, [$this, 'clear_connection'], 0);
$this->eventProvider->on(BeginTransaction::class, [$this, 'beginTransaction'], 0);
$this->eventProvider->on(Rollback::class, [$this, 'rollback'], 0);
$this->eventProvider->on(Commit::class, [$this, 'commit'], 0);
$this->getEventProvider()->on(OnWorkerStop::class, [$this, 'clear_connection'], 0);
$this->getEventProvider()->on(OnWorkerExit::class, [$this, 'clear_connection'], 0);
$this->getEventProvider()->on(BeginTransaction::class, [$this, 'beginTransaction'], 0);
$this->getEventProvider()->on(Rollback::class, [$this, 'rollback'], 0);
$this->getEventProvider()->on(Commit::class, [$this, 'commit'], 0);
}