@@ 331-342 (lines=12) @@ | ||
328 | /** |
|
329 | * @param string|string[] $actions |
|
330 | */ |
|
331 | public function watch($actions) |
|
332 | { |
|
333 | if (!is_array($actions)) { |
|
334 | $actions = [$actions]; |
|
335 | } |
|
336 | ||
337 | foreach ($actions as $action) { |
|
338 | $this->pheanstalk->watch($action); |
|
339 | ||
340 | $this->logger->debug(sprintf('Watching tube "%s"', $action)); |
|
341 | } |
|
342 | } |
|
343 | ||
344 | /** |
|
345 | * @param string|string[] $actions |
|
@@ 358-369 (lines=12) @@ | ||
355 | /** |
|
356 | * @param string|string[] $actions |
|
357 | */ |
|
358 | public function ignore($actions) |
|
359 | { |
|
360 | if (!is_array($actions)) { |
|
361 | $actions = [$actions]; |
|
362 | } |
|
363 | ||
364 | foreach ($actions as $action) { |
|
365 | $this->pheanstalk->ignore($action); |
|
366 | ||
367 | $this->logger->debug(sprintf('Ignoring tube "%s"', $action)); |
|
368 | } |
|
369 | } |
|
370 | ||
371 | /** |
|
372 | * @param int $timeout |
@@ 247-258 (lines=12) @@ | ||
244 | /** |
|
245 | * @param string|string[] $actions |
|
246 | */ |
|
247 | public function watch($actions) |
|
248 | { |
|
249 | if (!is_array($actions)) { |
|
250 | $actions = [$actions]; |
|
251 | } |
|
252 | ||
253 | foreach ($actions as $action) { |
|
254 | $this->pheanstalk->watch($action); |
|
255 | ||
256 | $this->logger->debug(sprintf('Watching tube "%s"', $action)); |
|
257 | } |
|
258 | } |
|
259 | ||
260 | /** |
|
261 | * @param string|string[] $actions |
|
@@ 274-285 (lines=12) @@ | ||
271 | /** |
|
272 | * @param string|string[] $actions |
|
273 | */ |
|
274 | public function ignore($actions) |
|
275 | { |
|
276 | if (!is_array($actions)) { |
|
277 | $actions = [$actions]; |
|
278 | } |
|
279 | ||
280 | foreach ($actions as $action) { |
|
281 | $this->pheanstalk->ignore($action); |
|
282 | ||
283 | $this->logger->debug(sprintf('Ignoring tube "%s"', $action)); |
|
284 | } |
|
285 | } |
|
286 | ||
287 | /** |
|
288 | * @param int $timeout |