Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Pz\Doctrine\Rest\Action; |
||
17 | public function handle(RestRequestAbstract $request) |
||
18 | { |
||
19 | $entity = $this->repository()->findByIdentifier($request); |
||
20 | $request->authorize($entity); |
||
21 | |||
22 | $this->updateEntity($request, $entity); |
||
23 | $this->repository()->em()->flush(); |
||
24 | |||
25 | return $this->response()->update($request, $entity); |
||
26 | } |
||
39 |