@@ -65,6 +65,8 @@ public static function provideConfigs()
6565 'connect_timeout ' => null ,
6666 'persisted ' => false ,
6767 'lazy ' => true ,
68+ 'pre_fetch_count ' => null ,
69+ 'pre_fetch_size ' => null ,
6870 ],
6971 ];
7072
@@ -83,6 +85,8 @@ public static function provideConfigs()
8385 'connect_timeout ' => null ,
8486 'persisted ' => false ,
8587 'lazy ' => true ,
88+ 'pre_fetch_count ' => null ,
89+ 'pre_fetch_size ' => null ,
8690 ],
8791 ];
8892
@@ -99,6 +103,8 @@ public static function provideConfigs()
99103 'connect_timeout ' => null ,
100104 'persisted ' => false ,
101105 'lazy ' => true ,
106+ 'pre_fetch_count ' => null ,
107+ 'pre_fetch_size ' => null ,
102108 ],
103109 ];
104110
@@ -115,6 +121,8 @@ public static function provideConfigs()
115121 'connect_timeout ' => null ,
116122 'persisted ' => false ,
117123 'lazy ' => true ,
124+ 'pre_fetch_count ' => null ,
125+ 'pre_fetch_size ' => null ,
118126 ],
119127 ];
120128
@@ -131,6 +139,8 @@ public static function provideConfigs()
131139 'connect_timeout ' => '2 ' ,
132140 'persisted ' => false ,
133141 'lazy ' => '' ,
142+ 'pre_fetch_count ' => null ,
143+ 'pre_fetch_size ' => null ,
134144 ],
135145 ];
136146
@@ -147,6 +157,8 @@ public static function provideConfigs()
147157 'connect_timeout ' => null ,
148158 'persisted ' => false ,
149159 'lazy ' => true ,
160+ 'pre_fetch_count ' => null ,
161+ 'pre_fetch_size ' => null ,
150162 ],
151163 ];
152164
@@ -163,6 +175,44 @@ public static function provideConfigs()
163175 'connect_timeout ' => null ,
164176 'persisted ' => false ,
165177 'lazy ' => false ,
178+ 'pre_fetch_count ' => null ,
179+ 'pre_fetch_size ' => null ,
180+ ],
181+ ];
182+
183+ yield [
184+ ['pre_fetch_count ' => 123 , 'pre_fetch_size ' => 321 ],
185+ [
186+ 'host ' => 'localhost ' ,
187+ 'port ' => 5672 ,
188+ 'vhost ' => '/ ' ,
189+ 'user ' => 'guest ' ,
190+ 'pass ' => 'guest ' ,
191+ 'read_timeout ' => null ,
192+ 'write_timeout ' => null ,
193+ 'connect_timeout ' => null ,
194+ 'persisted ' => false ,
195+ 'lazy ' => true ,
196+ 'pre_fetch_count ' => 123 ,
197+ 'pre_fetch_size ' => 321 ,
198+ ],
199+ ];
200+
201+ yield [
202+ 'amqp://user:pass@host:10000/vhost?pre_fetch_count=123&pre_fetch_size=321 ' ,
203+ [
204+ 'host ' => 'host ' ,
205+ 'port ' => '10000 ' ,
206+ 'vhost ' => 'vhost ' ,
207+ 'user ' => 'user ' ,
208+ 'pass ' => 'pass ' ,
209+ 'read_timeout ' => null ,
210+ 'write_timeout ' => null ,
211+ 'connect_timeout ' => null ,
212+ 'persisted ' => false ,
213+ 'lazy ' => true ,
214+ 'pre_fetch_count ' => 123 ,
215+ 'pre_fetch_size ' => 321 ,
166216 ],
167217 ];
168218 }
0 commit comments