Add jail's status + directorys history admin
This commit is contained in:
@@ -314,4 +314,21 @@ class DirectoryController extends AbstractController
|
||||
'deletedDirectory' => $deleted
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
#[Route('/history/{id}', name: 'history')]
|
||||
public function history(Directory $Directory, EntityManagerInterface $em): Response
|
||||
{
|
||||
|
||||
/**
|
||||
* @var LogEntryRepository $logEntryRepository
|
||||
*/
|
||||
$logEntryRepository = $em->getRepository('Gedmo\Loggable\Entity\LogEntry');
|
||||
$directoryHistory = $logEntryRepository->getLogEntries($Directory);
|
||||
return $this->render('directory/history.html.twig', [
|
||||
'controller_name' => 'DocumentController',
|
||||
'directory' => $Directory,
|
||||
'history' => $directoryHistory,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user