Skip to content

Commit

Permalink
Moved the EventDispatcherAwareInterface to AbstractWorker
Browse files Browse the repository at this point in the history
The WorkerInterface should not need to implement the required event methods.
  • Loading branch information
justinrainbow committed Jul 23, 2012
1 parent 99b3e15 commit 03acd02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Presque/Worker/AbstractWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
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;
use Presque\Job\JobInterface;
use Presque\StatusInterface;
use Presque\Events;

abstract class AbstractWorker implements WorkerInterface, LoggerAwareInterface
abstract class AbstractWorker implements WorkerInterface, LoggerAwareInterface, EventDispatcherAwareInterface
{
protected $id;
protected $status;
Expand Down
3 changes: 1 addition & 2 deletions src/Presque/Worker/WorkerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@

namespace Presque\Worker;

use Presque\Event\EventDispatcherAwareInterface;
use Presque\Queue\QueueInterface;

interface WorkerInterface extends EventDispatcherAwareInterface
interface WorkerInterface
{
function getId();

Expand Down

0 comments on commit 03acd02

Please sign in to comment.