Skip to content

Commit

Permalink
[8.x] Add missing dispatchAfterCommit to DatabaseQueue (laravel#35715)
Browse files Browse the repository at this point in the history
* add missing dispatchAfterCommit to DatabaseQueue

* add new param to phpdoc
  • Loading branch information
danesteve authored and levacic committed Dec 26, 2020
1 parent 09ab2a7 commit cbff01f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Illuminate/Queue/DatabaseQueue.php
Expand Up @@ -47,14 +47,20 @@ class DatabaseQueue extends Queue implements QueueContract, ClearableQueue
* @param string $table
* @param string $default
* @param int $retryAfter
* @param bool $dispatchAfterCommit
* @return void
*/
public function __construct(Connection $database, $table, $default = 'default', $retryAfter = 60)
public function __construct(Connection $database,
$table,
$default = 'default',
$retryAfter = 60,
$dispatchAfterCommit = false)
{
$this->table = $table;
$this->default = $default;
$this->database = $database;
$this->retryAfter = $retryAfter;
$this->dispatchAfterCommit = $dispatchAfterCommit;
}

/**
Expand Down

0 comments on commit cbff01f

Please sign in to comment.