From 0327217907adce5f17d88c276f5be94833b2bb53 Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Thu, 26 Jun 2014 19:07:52 +1000 Subject: [PATCH] call beforePerform before retrieving an instance of the job class --- lib/Resque/Job.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Job.php b/lib/Resque/Job.php index ddc37d0..23ae7a4 100755 --- a/lib/Resque/Job.php +++ b/lib/Resque/Job.php @@ -186,10 +186,10 @@ class Resque_Job */ public function perform() { - $instance = $this->getInstance(); try { Resque_Event::trigger('beforePerform', $this); + $instance = $this->getInstance(); if(method_exists($instance, 'setUp')) { $instance->setUp(); }