From e3c953baf1e9811eb35bf41c44fba2529d2c916f Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Mon, 19 Apr 2010 00:12:14 +1000 Subject: [PATCH] Fix up enqueue example arguments - they're now an object. Add example of how to access arguments in the example job --- README.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index a00c3e3..838102b 100644 --- a/README.markdown +++ b/README.markdown @@ -45,9 +45,8 @@ Jobs are queued as follows: // Required if redis is located elsewhere Resque::setBackend('localhost', 6379); - $args = array( - 'name' => 'Chris' - ); + $args = new stdClass; + $args->name = 'Chris'; Resque::enqueue('default', 'My_Job', $args); ### Defining Jobs ### @@ -60,6 +59,7 @@ It's important to note that classes are called statically. public static function perform($args) { // Work work work + echo $args->name; } }