Skip to content

Commit

Permalink
Merge pull request #3 from rokde/master
Browse files Browse the repository at this point in the history
optional queue name
  • Loading branch information
davelip committed Mar 4, 2015
2 parents dfb51d4 + b4475e8 commit d3b676a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You should now be able to use the database driver in config/queue.php
...
'database' => array(
'driver' => 'database',
'queue' => 'queue-name',
'queue' => 'queue-name', // optional, can be null or any string
),
...
}
Expand Down
2 changes: 1 addition & 1 deletion src/Connectors/DatabaseConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DatabaseConnector implements ConnectorInterface {
*/
public function connect(array $config)
{
return new DatabaseQueue($config['queue']);
return new DatabaseQueue(array_get($config, 'queue'));
}

}

0 comments on commit d3b676a

Please sign in to comment.