Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c784fe

Browse files
committed
bug EasyCorp#6742 Inject interfaces in menu item matcher instead of concrete implementations. (dragosprotung)
This PR was merged into the 4.x branch. Discussion ---------- Inject interfaces in menu item matcher instead of concrete implementations. Commits ------- 86f24ae Inject interfaces in menu item matcher
2 parents 590c9bc + 86f24ae commit 9c784fe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Menu/MenuItemMatcher.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
77
use EasyCorp\Bundle\EasyAdminBundle\Config\Option\EA;
88
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Menu\MenuItemMatcherInterface;
9+
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Router\AdminRouteGeneratorInterface;
910
use EasyCorp\Bundle\EasyAdminBundle\Dto\MenuItemDto;
10-
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminRouteGenerator;
11-
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator;
11+
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGeneratorInterface;
1212
use Symfony\Component\HttpFoundation\Request;
1313

1414
/**
@@ -17,8 +17,8 @@
1717
class MenuItemMatcher implements MenuItemMatcherInterface
1818
{
1919
public function __construct(
20-
private AdminUrlGenerator $adminUrlGenerator,
21-
private AdminRouteGenerator $adminRouteGenerator,
20+
private AdminUrlGeneratorInterface $adminUrlGenerator,
21+
private AdminRouteGeneratorInterface $adminRouteGenerator,
2222
) {
2323
}
2424

0 commit comments

Comments
 (0)