77use Doctrine \DBAL \Connection ;
88use Doctrine \DBAL \Schema \Table ;
99use Doctrine \DBAL \Types \Type ;
10+ use Interop \Queue \Consumer ;
11+ use Interop \Queue \Context ;
12+ use Interop \Queue \Destination ;
1013use Interop \Queue \InvalidDestinationException ;
11- use Interop \Queue \PsrConsumer ;
12- use Interop \Queue \PsrContext ;
13- use Interop \Queue \PsrDestination ;
14- use Interop \Queue \PsrMessage ;
15- use Interop \Queue \PsrProducer ;
16- use Interop \Queue \PsrQueue ;
17- use Interop \Queue \PsrSubscriptionConsumer ;
18- use Interop \Queue \PsrTopic ;
14+ use Interop \Queue \Message ;
15+ use Interop \Queue \Producer ;
16+ use Interop \Queue \Queue ;
17+ use Interop \Queue \SubscriptionConsumer ;
1918use Interop \Queue \SubscriptionConsumerNotSupportedException ;
2019use Interop \Queue \TemporaryQueueNotSupportedException ;
20+ use Interop \Queue \Topic ;
2121
22- class DbalContext implements PsrContext
22+ class DbalContext implements Context
2323{
2424 /**
2525 * @var Connection
@@ -65,7 +65,7 @@ public function __construct($connection, array $config = [])
6565 /**
6666 * {@inheritdoc}
6767 */
68- public function createMessage (string $ body = '' , array $ properties = [], array $ headers = []): PsrMessage
68+ public function createMessage (string $ body = '' , array $ properties = [], array $ headers = []): Message
6969 {
7070 $ message = new DbalMessage ();
7171 $ message ->setBody ($ body );
@@ -78,36 +78,36 @@ public function createMessage(string $body = '', array $properties = [], array $
7878 /**
7979 * @return DbalDestination
8080 */
81- public function createQueue (string $ name ): PsrQueue
81+ public function createQueue (string $ name ): Queue
8282 {
8383 return new DbalDestination ($ name );
8484 }
8585
8686 /**
8787 * @return DbalDestination
8888 */
89- public function createTopic (string $ name ): PsrTopic
89+ public function createTopic (string $ name ): Topic
9090 {
9191 return new DbalDestination ($ name );
9292 }
9393
94- public function createTemporaryQueue (): PsrQueue
94+ public function createTemporaryQueue (): Queue
9595 {
9696 throw TemporaryQueueNotSupportedException ::providerDoestNotSupportIt ();
9797 }
9898
9999 /**
100100 * @return DbalProducer
101101 */
102- public function createProducer (): PsrProducer
102+ public function createProducer (): Producer
103103 {
104104 return new DbalProducer ($ this );
105105 }
106106
107107 /**
108108 * @return DbalConsumer
109109 */
110- public function createConsumer (PsrDestination $ destination ): PsrConsumer
110+ public function createConsumer (Destination $ destination ): Consumer
111111 {
112112 InvalidDestinationException ::assertDestinationInstanceOf ($ destination , DbalDestination::class);
113113
@@ -124,15 +124,15 @@ public function close(): void
124124 {
125125 }
126126
127- public function createSubscriptionConsumer (): PsrSubscriptionConsumer
127+ public function createSubscriptionConsumer (): SubscriptionConsumer
128128 {
129129 throw SubscriptionConsumerNotSupportedException ::providerDoestNotSupportIt ();
130130 }
131131
132132 /**
133133 * @param DbalDestination $queue
134134 */
135- public function purgeQueue (PsrQueue $ queue ): void
135+ public function purgeQueue (Queue $ queue ): void
136136 {
137137 $ this ->getDbalConnection ()->delete (
138138 $ this ->getTableName (),
0 commit comments