Skip to content

Commit

Permalink
Add options to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bouke-nederstigt committed Jul 5, 2018
1 parent 393cecd commit ffcdb7b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ManagementApi/Api/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,15 @@ public function create($vhost, $name, array $queue)
* @param string $name
* @return array
*/
public function delete($vhost, $name)
public function delete($vhost, $name, $options = null)
{
return $this->client->send(sprintf('/api/queues/%s/%s', urlencode($vhost), urlencode($name)), 'DELETE');
if($options){
$options = '?'.urlencode($options);
}else{
$options='';
}

return $this->client->send(sprintf('/api/queues/%s/%s%s', urlencode($vhost), urlencode($name), $options), 'DELETE');
}

/**
Expand Down

0 comments on commit ffcdb7b

Please sign in to comment.