-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndexController.php
More file actions
33 lines (29 loc) · 1012 Bytes
/
IndexController.php
File metadata and controls
33 lines (29 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace App\Controller;
use App\Entity\Automation;
use App\Entity\Connection;
use App\Entity\Flow;
use App\Entity\Step;
use App\Entity\Dataset;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class IndexController extends DefaultController
{
#[Route('/', name: 'app_index')]
public function index(EntityManagerInterface $entityManager): Response
{
$connections = $entityManager->getRepository(Connection::class)->findAll();
$automations = $entityManager->getRepository(Automation::class)->findAll();
$flows = $entityManager->getRepository(Flow::class)->findAll();
$steps = $entityManager->getRepository(Step::class)->findAll();
$datasets = $entityManager->getRepository(Dataset::class)->findAll();
return $this->render('index/index.html.twig', [
'connections' => $connections,
'automations' => $automations,
'flows' => $flows,
'steps' => $steps,
'datasets' => $datasets,
]);
}
}