public function redirectAction($type, $id)
{
$doctrine = $this->getDoctrine();
switch ($type) {
case 'article':
return $this->redirectArticle($doctrine, $id);
case 'journal':
return $this->redirectJournal($doctrine, $id);
default:
throw $this->createNotFoundException();
}
}