src/Controller/DashboardController.php line 28
<?php/** This file is part of the Pellipop project.** (c) Mobizel** For the full copyright and license information, please view the LICENSE* file that was distributed with this source code.*/declare(strict_types=1);namespace App\Controller;use Monofony\Contracts\Admin\Dashboard\DashboardStatisticsProviderInterface;use Symfony\Component\HttpFoundation\Response;use Twig\Environment;final class DashboardController{public function __construct(private DashboardStatisticsProviderInterface $statisticsProvider,private Environment $twig,) {}public function indexAction(): Response{$statistics = $this->statisticsProvider->getStatistics();$content = $this->twig->render('backend/index.html.twig', ['statistics' => $statistics]);return new Response($content);}}