public function deploySonar(QueueRepo $queue)
    {
        if (! Cache::has('eyewitness_q_sonar_deployed_'.$queue->id)) {
            Cache::put('eyewitness_q_sonar_deployed_'.$queue->id, time(), 180);

            if ($this->eye->laravelVersionIs('>=', '5.2.0')) {
                QueueFacade::connection($queue->connection)->pushOn($queue->tube, new Sonar($queue->id, $queue->connection, $queue->tube));
            } else {
                QueueFacade::connection($queue->connection)->pushOn($queue->tube, new SonarLegacy($queue->id, $queue->connection, $queue->tube));
            }
        }
    }
public function deploySonar(QueueRepo $queue)
    {
        if (! Cache::has('eyewitness_q_sonar_deployed_'.$queue->id)) {
            Cache::put('eyewitness_q_sonar_deployed_'.$queue->id, time(), 180);

            if ($this->eye->laravelVersionIs('>=', '5.2.0')) {
                QueueFacade::connection($queue->connection)->pushOn($queue->tube, new Sonar($queue->id, $queue->connection, $queue->tube));
            } else {
                QueueFacade::connection($queue->connection)->pushOn($queue->tube, new SonarLegacy($queue->id, $queue->connection, $queue->tube));
            }
        }
    }
public function deploySonar ( QueueRepo $ queue ) { if ( ! Cache :: has ( 'eyewitness_q_sonar_deployed_' . $ queue -> id ) ) { Cache :: put ( 'eyewitness_q_sonar_deployed_' . $ queue -> id , time ( ) , 180 ) ; if ( $ this -> eye -> laravelVersionIs ( '>=' , '5.2.0' ) ) { QueueFacade :: connection ( $ queue -> connection ) -> pushOn ( $ queue -> tube , new Sonar ( $ queue -> id , $ queue -> connection , $ queue -> tube ) ) ; } else { QueueFacade :: connection ( $ queue -> connection ) -> pushOn ( $ queue -> tube , new SonarLegacy ( $ queue -> id , $ queue -> connection , $ queue -> tube ) ) ; } } }
Send a sonar tracking job on the queue for each connection and tube.

@param  \Eyewitness\Eye\Repo\Queue  $queue
@return void
Send a sonar tracking job on the queue for each connection and tube .