/** * {@inheritDoc} */ public function ignore($tube) { if ($this->dispatcher) { $this->dispatcher->dispatch(CommandEvent::IGNORE, new CommandEvent($this, ['tube' => $tube])); } $this->pheanstalk->ignore($tube); return $this; }
/** * @param string|string[] $actions */ public function ignore($actions) { if (!is_array($actions)) { $actions = [$actions]; } foreach ($actions as $action) { $this->pheanstalk->ignore($action); $this->logger->debug(sprintf('Ignoring tube "%s"', $action)); } }