Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function homepageAction() |
||
17 | { |
||
18 | $orders = $this->getDoctrine()->getRepository(Order::class)->findLatest(5); |
||
19 | $categoryCount = $this->getDoctrine()->getRepository(Category::class)->countAll(); |
||
20 | $mealCount = $this->getDoctrine()->getRepository(Meal::class)->countAll(); |
||
21 | |||
22 | $firstAvailableTime = $this->get('planning')->getFirstAvailableTime(); |
||
23 | |||
24 | return $this->render('admin/index.html.twig', array( |
||
25 | 'orders' => $orders, |
||
26 | 'category_count' => $categoryCount, |
||
27 | 'meal_count' => $mealCount, |
||
28 | 'first_available_time' => $firstAvailableTime, |
||
29 | )); |
||
30 | } |
||
31 | } |
||
32 |