Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Add $data parameter to deleteList
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Jan 20, 2015
1 parent 282840f commit 9c11598
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class RestController extends AbstractRestfulController
* @var int
*/
protected $pageSize = 30;

/**
* Maximum number of entities to return per page of a collection. If
* $pageSize parameter is out of range an ApiProblem will be returned
Expand Down Expand Up @@ -158,7 +158,7 @@ public function setCollectionName($name)
{
$this->collectionName = (string) $name;
}

/**
* Set the minimum page size for paginated responses
*
Expand Down Expand Up @@ -431,13 +431,13 @@ public function delete($id)
return $response;
}

public function deleteList()
public function deleteList($data = null)
{
$events = $this->getEventManager();
$events->trigger('deleteList.pre', $this, array());

try {
$result = $this->getResource()->deleteList();
$result = $this->getResource()->deleteList($data);
} catch (\Exception $e) {
return new ApiProblem($this->getHttpStatusCodeFromException($e), $e);
}
Expand Down

0 comments on commit 9c11598

Please sign in to comment.