From 7ef1ebbd97d6feb876e0a5a7ae9c3c13d2a08ffc Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Mon, 19 Apr 2010 00:12:35 +1000 Subject: [PATCH] Fix up demo/queue.php job arguments --- demo/queue.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/queue.php b/demo/queue.php index 6ae4962..29ac3ad 100644 --- a/demo/queue.php +++ b/demo/queue.php @@ -10,10 +10,10 @@ Resque::setBackend('127.0.0.1:6379'); $class = new stdClass; $class->test = 'test'; -$args = array( - time(), - $class -); +$args = new stdClass; +$args->time = time(); +$args->class = $class; + $jobId = Resque::enqueue('default', $argv[1], $args, true); echo "Queued job ".$jobId."\n\n"; ?> \ No newline at end of file