Skip to content

Commit ad3f68f

Browse files
committed
Fix an issue caused by a bad merge from 4.x
1 parent a0205d4 commit ad3f68f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ArgumentResolver/AdminContextResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace EasyCorp\Bundle\EasyAdminBundle\ArgumentResolver;
44

5+
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Context\AdminContextInterface;
56
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Provider\AdminContextProviderInterface;
67
use Symfony\Component\HttpFoundation\Request;
78
use Symfony\Component\HttpKernel\Controller\ValueResolverInterface;
@@ -18,7 +19,7 @@ public function __construct(private AdminContextProviderInterface $adminContextP
1819

1920
public function resolve(Request $request, ArgumentMetadata $argument): iterable
2021
{
21-
if (!is_a($argument->getType(), AdminContextProviderInterface::class, true)) {
22+
if (!is_a($argument->getType(), AdminContextInterface::class, true)) {
2223
return [];
2324
}
2425

0 commit comments

Comments
 (0)