1 | <?php |
||
11 | class AmqpMessageQueueFactory implements MessageQueueFactory, LoggerAwareInterface |
||
12 | { |
||
13 | /** |
||
14 | * @param array $configuration |
||
15 | * @param LoggerInterface $logger |
||
16 | * @return AmqpMessageQueueFactory |
||
17 | */ |
||
18 | 4 | public static function create(array $configuration = [], LoggerInterface $logger = null) |
|
22 | |||
23 | /** |
||
24 | * @var AmqpConfiguration |
||
25 | */ |
||
26 | private $configuration; |
||
27 | |||
28 | /** |
||
29 | * @var \AMQPExchange |
||
30 | */ |
||
31 | private $exchange; |
||
32 | |||
33 | /** |
||
34 | * @var \AMQPConnection |
||
35 | */ |
||
36 | private $connection; |
||
37 | |||
38 | /** |
||
39 | * @var \AMQPChannel |
||
40 | */ |
||
41 | private $channel; |
||
42 | |||
43 | /** |
||
44 | * @var LoggerInterface |
||
45 | */ |
||
46 | private $logger; |
||
47 | |||
48 | 8 | public function __construct(AmqpConfiguration $configuration = null, LoggerInterface $logger = null) |
|
53 | |||
54 | /** |
||
55 | * Sets a logger instance on the object |
||
56 | * |
||
57 | * @param LoggerInterface $logger |
||
58 | * @return null |
||
59 | */ |
||
60 | public function setLogger(LoggerInterface $logger) |
||
64 | |||
65 | /** |
||
66 | * @param $name |
||
67 | * @return MessageQueue |
||
68 | */ |
||
69 | 8 | public function getNamedQueue($name) |
|
75 | |||
76 | /** |
||
77 | * @param \AMQPExchange $exchange |
||
78 | * @param $queueName |
||
79 | * @param string $errorExchangeName |
||
80 | * @return \AMQPQueue |
||
81 | */ |
||
82 | 8 | private function buildQueue(\AMQPExchange $exchange, $queueName, $errorExchangeName = '') |
|
101 | |||
102 | |||
103 | 8 | protected function declareExchange() |
|
119 | |||
120 | /** |
||
121 | * @return \AMQPConnection |
||
122 | */ |
||
123 | 8 | public function getConnection() |
|
137 | |||
138 | /** |
||
139 | * @return \AMQPChannel |
||
140 | */ |
||
141 | 8 | public function getChannel() |
|
149 | } |
||
150 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.