Skip to content

Commit 7c017ab

Browse files
committed
Remove deprecated code.
1 parent c52ba7c commit 7c017ab

9 files changed

Lines changed: 6 additions & 240 deletions

File tree

‎docs/transport/sqs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $consumer->acknowledge($message);
110110

111111
$fooQueue = $psrContext->createQueue('foo');
112112

113-
$psrContext->purge($fooQueue);
113+
$psrContext->purgeQueue($fooQueue);
114114
```
115115

116116
[back to index](../index.md)

‎pkg/amqp-tools/SubscriptionConsumer.php‎

Lines changed: 0 additions & 57 deletions
This file was deleted.

‎pkg/amqp-tools/Tests/SubscriptionConsumerTest.php‎

Lines changed: 0 additions & 96 deletions
This file was deleted.

‎pkg/job-queue/Schema.php‎

Lines changed: 0 additions & 55 deletions
This file was deleted.

‎pkg/simple-client/SimpleClient.php‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,6 @@ public function sendEvent($topic, $message)
148148
$this->getProducer()->sendEvent($topic, $message);
149149
}
150150

151-
/**
152-
* @deprecated since 0.8.18 and will be removed in 0.9. Use sendEvent method instead
153-
*
154-
* @param string $topic
155-
* @param string|array $message
156-
* @param bool $setupBroker
157-
*/
158-
public function send($topic, $message, $setupBroker = false)
159-
{
160-
if ($setupBroker) {
161-
$this->setupBroker();
162-
}
163-
164-
$this->sendEvent($topic, $message);
165-
}
166-
167151
/**
168152
* @param ExtensionInterface|null $runtimeExtension
169153
*/

‎pkg/simple-client/Tests/Functional/SimpleClientTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testProduceAndConsumeOneMessage($config)
112112
return Result::ACK;
113113
});
114114

115-
$client->send('foo_topic', 'Hello there!', true);
115+
$client->sendEvent('foo_topic', 'Hello there!', true);
116116

117117
$client->consume(new ChainExtension([
118118
new LimitConsumptionTimeExtension(new \DateTime('+5sec')),
@@ -144,7 +144,7 @@ public function testProduceAndRouteToTwoConsumes($config)
144144
return Result::ACK;
145145
});
146146

147-
$client->send('foo_topic', 'Hello there!', true);
147+
$client->sendEvent('foo_topic', 'Hello there!', true);
148148

149149
$client->consume(new ChainExtension([
150150
new LimitConsumptionTimeExtension(new \DateTime('+5sec')),

‎pkg/sqs/SqsContext.php‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,6 @@ public function deleteQueue(SqsDestination $dest)
185185
unset($this->queueUrls[$dest->getQueueName()]);
186186
}
187187

188-
/**
189-
* @deprecated since 0.8 will be removed 0.9 use self::purgeQueue()
190-
*
191-
* @param SqsDestination $dest
192-
*/
193-
public function purge(SqsDestination $dest)
194-
{
195-
$this->purgeQueue($dest);
196-
}
197-
198188
/**
199189
* @param SqsDestination $destination
200190
*/

‎pkg/sqs/Tests/Functional/SqsConsumptionUseCasesTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ protected function setUp()
3939
$this->context->declareQueue($replyQueue);
4040

4141
try {
42-
$this->context->purge($queue);
43-
$this->context->purge($replyQueue);
42+
$this->context->purgeQueue($queue);
43+
$this->context->purgeQueue($replyQueue);
4444
} catch (\Exception $e) {
4545
}
4646
}

‎pkg/sqs/Tests/SqsContextTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function testShouldAllowPurgeQueue()
187187

188188
$queue = $context->createQueue('aQueueName');
189189

190-
$context->purge($queue);
190+
$context->purgeQueue($queue);
191191
}
192192

193193
public function testShouldAllowGetQueueUrl()

0 commit comments

Comments
 (0)