public showAction ( string $identifier ) : string | ||
$identifier | string | Specifies the asset to look up |
return | string |
public function showAction($identifier)
{
$asset = $this->assetRepository->findByIdentifier($identifier);
if ($asset === null) {
$this->throwStatus(404);
}
$this->view->assign('asset', $asset);
}