diff --git a/src/Presque/Worker/AbstractWorker.php b/src/Presque/Worker/AbstractWorker.php index d74ad64..5de6df8 100644 --- a/src/Presque/Worker/AbstractWorker.php +++ b/src/Presque/Worker/AbstractWorker.php @@ -14,6 +14,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Presque\Event\JobEvent; use Presque\Event\WorkerEvent; +use Presque\Event\EventDispatcherAwareInterface; use Presque\Log\LoggerAwareInterface; use Presque\Log\LoggerInterface; use Presque\Queue\QueueInterface; @@ -21,7 +22,7 @@ use Presque\StatusInterface; use Presque\Events; -abstract class AbstractWorker implements WorkerInterface, LoggerAwareInterface +abstract class AbstractWorker implements WorkerInterface, LoggerAwareInterface, EventDispatcherAwareInterface { protected $id; protected $status; diff --git a/src/Presque/Worker/WorkerInterface.php b/src/Presque/Worker/WorkerInterface.php index 98ff55a..99d54d5 100644 --- a/src/Presque/Worker/WorkerInterface.php +++ b/src/Presque/Worker/WorkerInterface.php @@ -11,10 +11,9 @@ namespace Presque\Worker; -use Presque\Event\EventDispatcherAwareInterface; use Presque\Queue\QueueInterface; -interface WorkerInterface extends EventDispatcherAwareInterface +interface WorkerInterface { function getId();