Skip to content

Commit d8c175b

Browse files
authored
Merge pull request #131 from php-enqueue/remove-deprecated-stuff
Remove previously deprecated code.
2 parents 9e6cc45 + 5568e06 commit d8c175b

File tree

4 files changed

+1
-36
lines changed

4 files changed

+1
-36
lines changed

pkg/enqueue/Client/Producer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Enqueue\Util\JSON;
77
use Enqueue\Util\UUID;
88

9-
class Producer implements ProducerInterface, ProducerV2Interface
9+
class Producer implements ProducerInterface
1010
{
1111
/**
1212
* @var DriverInterface

pkg/enqueue/Client/ProducerInterface.php

-13
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,4 @@ public function sendEvent($topic, $message);
2020
* @return Promise|null the promise is returned if needReply argument is true
2121
*/
2222
public function sendCommand($command, $message, $needReply = false);
23-
24-
/**
25-
* @deprecated use sendEvent method.
26-
*
27-
* Sends a message to a topic. There are some message processor may be subscribed to a topic.
28-
*
29-
* @param string $topic
30-
* @param string|array|Message $message
31-
*
32-
* @throws \Enqueue\Psr\Exception - if the producer fails to send
33-
* the message due to some internal error
34-
*/
35-
public function send($topic, $message);
3623
}

pkg/enqueue/Client/ProducerV2Interface.php

-12
This file was deleted.

pkg/enqueue/Symfony/TransportFactoryInterface.php

-10
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ public function createConnectionFactory(ContainerBuilder $container, array $conf
2828
*/
2929
public function createContext(ContainerBuilder $container, array $config);
3030

31-
/**
32-
* @deprecated since 0.5 will be removed in 0.6. The method will be moved to DriverFactoryInterface
33-
*
34-
* @param ContainerBuilder $container
35-
* @param array $config
36-
*
37-
* @return string The method must return a driver service id
38-
*/
39-
public function createDriver(ContainerBuilder $container, array $config);
40-
4131
/**
4232
* @return string
4333
*/

0 commit comments

Comments
 (0)