8000 :fire: [53543] Doctrine transport should not be closeable - it reuses… · symfony/symfony@951f15f · GitHub
[go: up one dir, main page]

Skip to content

Commit 951f15f

Browse files
committed
🔥 [53543] Doctrine transport should not be closeable - it reuses connection from the outside
1 parent edaf24a commit 951f15f

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ public function reset(): void
8080
$this->doMysqlCleanup = false;
8181
}
8282

83-
public function close(): void
84-
{
85-
$this->driverConnection->close();
86-
$this->reset();
87-
}
88-
8983
public function getConfiguration(): array
9084
{
9185
return $this->configuration;

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/DoctrineTransport.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Doctrine\DBAL\Schema\Schema;
1616
use Doctrine\DBAL\Schema\Table;
1717
use Symfony\Component\Messenger\Envelope;
18-
use Symfony\Component\Messenger\Transport\CloseableTransportInterface;
1918
use Symfony\Component\Messenger\Transport\Receiver\KeepaliveReceiverInterface;
2019
use Symfony\Component\Messenger\Transport\Receiver\ListableReceiverInterface;
2120
use Symfony\Component\Messenger\Transport\Receiver\MessageCountAwareInterface;
@@ -26,7 +25,7 @@
2625
/**
2726
* @author Vincent Touzet <vincent.touzet@gmail.com>
2827
*/
29-
class DoctrineTransport implements TransportInterface, SetupableTransportInterface, CloseableTransportInterface, MessageCountAwareInterface, ListableReceiverInterface, KeepaliveReceiverInterface
28+
class DoctrineTransport implements TransportInterface, SetupableTransportInterface, MessageCountAwareInterface, ListableReceiverInterface, KeepaliveReceiverInterface
3029
{
3130
private DoctrineReceiver $receiver;
3231
private 8CC4 DoctrineSender $sender;
@@ -82,11 +81,6 @@ public function setup(): void
8281
$this->connection->setup();
8382
}
8483

85-
public function close(): void
86-
{
87-
$this->connection->close();
88-
}
89-
9084
/**
9185
* Adds the Table to the Schema if this transport uses this connection.
9286
*/

0 commit comments

Comments
 (0)
0