Skip to content

Commit

Permalink
QueuedCommandMiddleware::delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Terentev committed Jan 28, 2016
1 parent 3b2764b commit e31ea65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/middlewares/QueuedCommandMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class QueuedCommandMiddleware extends Object implements Middleware
* @var string
*/
public $defaultQueueName;
/**
* @var string
*/
public $delay = 0;

/**
* @throws \yii\base\InvalidConfigException
Expand Down Expand Up @@ -60,7 +64,8 @@ public function execute($command, callable $next)
'serializer' => $this->serializer,
'object' => call_user_func($this->serializer[0], $command)
],
$queueName
$queueName,
$this->delay
);
}

Expand Down

0 comments on commit e31ea65

Please sign in to comment.