public function showAction($identifier) { $asset = $this->assetRepository->findByIdentifier($identifier); if ($asset === null) { $this->throwStatus(404); } $this->view->assign('asset', $asset); }