Skip to content

Commit

Permalink
remove connection class auto resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
alisissa committed Oct 19, 2016
1 parent a0fda53 commit 2f5e234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/Console/Commands/BowlerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
class BowlerCommand extends Command
{
protected $registerQueues;
protected $connction;

public function __construct(RegisterQueues $registerQueues, Connection $connection)
public function __construct(RegisterQueues $registerQueues)
{
parent::__construct();

$this->registerQueues = $registerQueues;
$this->connection = $connection;
}


Expand Down Expand Up @@ -54,7 +52,7 @@ public function handle()

foreach ($handlers as $handler) {
if ($handler->queueName == $queueName) {
$bowlerConsumer = new Consumer($this->connection, $handler->queueName);
$bowlerConsumer = new Consumer(app(Connection::class), $handler->queueName);
$bowlerConsumer->listenToQueue($handler->className);
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/RegisterQueues.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ class RegisterQueues
{
private $handlers = [];

public function __construct(Connection $connection)
{
$this->connection = $connection;
}

public function queue($queue, $className, $options = [])
{
$handler = new Handler();
Expand Down

0 comments on commit 2f5e234

Please sign in to comment.