Example #1
0
 /**
  * Scrive i log
  *
  * @param string $command
  * @param array $params (optional)
  * @param string $tube (optional)
  * @return bool
  */
 public function pushInQueue($command, array $params = null, $tube = null)
 {
     return QueueManager::push(Messenger::pack($command, $params), $tube);
 }
Example #2
0
 /**
  * Esegue il Job in coda
  *
  * @param Job $job
  * @param LoggerInterface $logger (optional)
  * @return null
  */
 public function execute(Job $job, LoggerInterface $logger = null)
 {
     //chiama
     return Messenger::resolve($job, $logger);
 }