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

Commit 0842115

Browse files
committed
Merge branch 'hotfix/184'
Close #184
2 parents d81369d + 1223140 commit 0842115

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- Nothing.
21+
- [#184](https://github.com/zendframework/zend-mvc/pull/184) provides a
22+
performance optimization for `DELETE` requests to `AbstractRestfulController`
23+
instances.
2224

2325
## 3.0.2 - 2016-06-30
2426

src/Controller/AbstractRestfulController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,15 @@ public function onDispatch(MvcEvent $e)
359359
// DELETE
360360
case 'delete':
361361
$id = $this->getIdentifier($routeMatch, $request);
362-
$data = $this->processBodyContent($request);
363362

364363
if ($id !== false) {
365364
$action = 'delete';
366365
$return = $this->delete($id);
367366
break;
368367
}
369368

369+
$data = $this->processBodyContent($request);
370+
370371
$action = 'deleteList';
371372
$return = $this->deleteList($data);
372373
break;

0 commit comments

Comments
 (0)