/** * @throws \Exception */ public function run() { if (!$this->pheanstalk->getConnection()->isServiceListening()) { throw new \Exception("Could not connect"); } $this->pheanstalk->watch('shopware'); $this->pheanstalk->ignore(\Pheanstalk_PheanstalkInterface::DEFAULT_TUBE); $this->runLoop(); }