Skip to content

Commit

Permalink
Use new admin dashboard route declaration method introduced with easy…
Browse files Browse the repository at this point in the history
… admin bundle 4.24.0
  • Loading branch information
jbtronics committed Feb 1, 2025
1 parent 36013b0 commit 57034f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/Admin/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use App\Entity\User;
use App\Services\GitVersionInfo;
use App\Services\Statistics\PaymentOrderStatistics;
use EasyCorp\Bundle\EasyAdminBundle\Attribute\AdminDashboard;
use EasyCorp\Bundle\EasyAdminBundle\Config\Action;
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
use EasyCorp\Bundle\EasyAdminBundle\Config\Assets;
Expand All @@ -40,6 +41,7 @@
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Core\User\UserInterface;

#[AdminDashboard(routePath: "/admin", routeName: "admin")]
final class DashboardController extends AbstractDashboardController
{
private const FILTER_DATETIME_FORMAT = 'Y-m-d\TH:i:s';
Expand All @@ -54,7 +56,6 @@ public function configureDashboard(): Dashboard
->setTitle('StuRa Finanzen');
}

#[Route(path: '/admin', name: 'admin')]
public function index(): Response
{
return $this->render('admin/dashboard.html.twig', [
Expand Down

0 comments on commit 57034f7

Please sign in to comment.