Command/RecrawlCommand.php
/**
     * Starts to listen to the queue and grabs the messages from the queue to crawl url's.
     *
     * It should endless keep listening to the queue, if the listen function stops, something went wrong
     * so a non-zero integer is returned to indicate something went wrong.
     *
     * @param \Symfony\Component\Console\Input\InputInterface   $input
     * @param \Symfony\Component\Console\Output\OutputInterface $output
     *
     * @return integer
     */
Starts to listen to the queue and grabs the messages from the queue to crawl url's.
It should endless keep listening to the queue, if the listen function stops, something went wrong
so a non-zero integer is returned to indicate something went wrong.



@return integer
Starts to listen to the queue and grabs the messages from the queue to crawl url ' s . It should endless keep listening to the queue if the listen function stops something went wrong so a non - zero integer is returned to indicate something went wrong . @return integer
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->queue->listen([$this, 'recrawl']);
        return 1;
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ this -> queue -> listen ( [ $ this , 'recrawl' ] ) ; return 1 ; }
Starts to listen to the queue and grabs the messages from the queue to crawl url's.
Starts to listen to the queue and grabs the messages from the queue to crawl url ' s .