Changed reference editor to not pass through data
This commit is contained in:
@ -40,25 +40,7 @@ class DefaultController extends AbstractController
|
||||
{
|
||||
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
||||
|
||||
$creeds = $emi->getRepository(Reference::class)->findByType('creed');
|
||||
$belgic = $emi->getRepository(Reference::class)->findByType('belgic');
|
||||
$heidelberg = $emi->getRepository(Reference::class)->findByType('hc');
|
||||
$dort = $emi->getRepository(Reference::class)->findByType('cd');
|
||||
$wcf = $emi->getRepository(Reference::class)->findByType('wcf');
|
||||
$wsc = $emi->getRepository(Reference::class)->findByType('wsc');
|
||||
$wlc = $emi->getRepository(Reference::class)->findByType('wlc');
|
||||
$lbc = $emi->getRepository(Reference::class)->findByType('lbc');
|
||||
|
||||
return $this->render('editors/reference-editor.html.twig', [
|
||||
'creeds' => ($creeds),
|
||||
'belgic' => ($belgic),
|
||||
'heidelberg' => ($heidelberg),
|
||||
'dort' => ($dort),
|
||||
'wcf' => ($wcf),
|
||||
'wsc' => ($wsc),
|
||||
'wlc' => ($wlc),
|
||||
'lbc' => ($lbc),
|
||||
]);
|
||||
return $this->render('editors/reference-editor.html.twig');
|
||||
}
|
||||
|
||||
#[Route('/template-editor', name: 'app_template_editor')]
|
||||
|
Reference in New Issue
Block a user