module/Cv/src/Cv/Controller/ViewController.php 1 location
|
@@ 53-58 (lines=6) @@
|
| 50 |
|
$id = $this->params('id'); |
| 51 |
|
$resume = $this->repository->find($id); |
| 52 |
|
|
| 53 |
|
if (!$resume) { |
| 54 |
|
$this->getResponse()->setStatusCode(Response::STATUS_CODE_404); |
| 55 |
|
return [ |
| 56 |
|
'message' => sprintf($this->translator->translate('Resume with id "%s" not found'), $id) |
| 57 |
|
]; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/* @todo REMOVE THIS |
| 61 |
|
* @codeCoverageIgnoreStart */ |
module/Jobs/src/Jobs/Controller/TemplateController.php 1 location
|
@@ 63-68 (lines=6) @@
|
| 60 |
|
/* @var \Jobs\Entity\Job $job */ |
| 61 |
|
$job = $this->jobRepository->find($id); |
| 62 |
|
|
| 63 |
|
if (!$job) { |
| 64 |
|
$response->setStatusCode(Response::STATUS_CODE_404); |
| 65 |
|
return [ |
| 66 |
|
'message' => sprintf($this->serviceLocator->get('Translator')->translate('Job with id "%s" not found'), $id) |
| 67 |
|
]; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
$mvcEvent = $this->getEvent(); |
| 71 |
|
$applicationViewModel = $mvcEvent->getViewModel(); |