Skip to content

Commit

Permalink
L5 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalizeR committed Apr 1, 2015
1 parent baf7955 commit b95a304
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Jobs/AMQPJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Forumhouse\LaravelAmqp\Jobs;

use Illuminate\Container\Container;
use Illuminate\Contracts\Queue\Queue as QueueContract;
use Illuminate\Queue\Jobs\Job;
use Illuminate\Queue\Queue;
use PhpAmqpLib\Channel\AMQPChannel;
use PhpAmqpLib\Message\AMQPMessage;

Expand All @@ -13,7 +13,7 @@
*
* @package Forumhouse\LaravelAmqp\Jobs
*/
class AMQPJob extends Job
class AMQPJob extends Job implements \Illuminate\Contracts\Queue\Job
{
/**
* @var string
Expand Down Expand Up @@ -106,7 +106,7 @@ public function release($delay = 0)
$job = $body['job'];
$data = $body['data'];

/** @var Queue $queue */
/** @var QueueContract $queue */
$queue = $this->container['queue']->connection();
if ($delay > 0) {
$queue->later($delay, $job, $data, $this->getQueue());
Expand Down

0 comments on commit b95a304

Please sign in to comment.