22
33namespace Enqueue \AmqpBunny ;
44
5- use Bunny \Client ;
65use Enqueue \AmqpTools \ConnectionConfig ;
76use Enqueue \AmqpTools \DelayStrategyAware ;
87use Enqueue \AmqpTools \DelayStrategyAwareTrait ;
@@ -18,7 +17,7 @@ class AmqpConnectionFactory implements InteropAmqpConnectionFactory, DelayStrate
1817 private $ config ;
1918
2019 /**
21- * @var Client
20+ * @var BunnyClient
2221 */
2322 private $ client ;
2423
@@ -82,7 +81,7 @@ public function getConfig()
8281 }
8382
8483 /**
85- * @return Client
84+ * @return BunnyClient
8685 */
8786 private function establishConnection ()
8887 {
@@ -96,9 +95,10 @@ private function establishConnection()
9695 $ bunnyConfig ['read_write_timeout ' ] = min ($ this ->config ->getReadTimeout (), $ this ->config ->getWriteTimeout ());
9796 $ bunnyConfig ['timeout ' ] = $ this ->config ->getConnectionTimeout ();
9897
98+ // @see https://github.com/php-enqueue/enqueue-dev/issues/229
9999// $bunnyConfig['persistent'] = $this->config->isPersisted();
100100// if ($this->config->isPersisted()) {
101- // $bunnyConfig['path'] = $this->config->getOption('path', $this->config->getOption('vhost'));
101+ // $bunnyConfig['path'] = 'enqueue';// $this->config->getOption('path', $this->config->getOption('vhost'));
102102// }
103103
104104 if ($ this ->config ->getHeartbeat ()) {
@@ -109,7 +109,7 @@ private function establishConnection()
109109 $ bunnyConfig ['tcp_nodelay ' ] = $ this ->config ->getOption ('tcp_nodelay ' );
110110 }
111111
112- $ this ->client = new Client ($ bunnyConfig );
112+ $ this ->client = new BunnyClient ($ bunnyConfig );
113113 $ this ->client ->connect ();
114114 }
115115
0 commit comments