File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace EasyCorp \Bundle \EasyAdminBundle \Contracts \Provider ;
44
5- use EasyCorp \Bundle \EasyAdminBundle \Context \AdminContext ;
65use EasyCorp \Bundle \EasyAdminBundle \Contracts \Context \AdminContextInterface ;
76
87/**
@@ -14,5 +13,5 @@ interface AdminContextProviderInterface extends AdminContextInterface
1413{
1514 public function hasContext (): bool ;
1615
17- public function getContext (bool $ throw = false ): ?AdminContext ;
16+ public function getContext (bool $ throw = false ): ?AdminContextInterface ;
1817}
Original file line number Diff line number Diff line change 33namespace EasyCorp \Bundle \EasyAdminBundle \Inspector ;
44
55use EasyCorp \Bundle \EasyAdminBundle \Config \Option \EA ;
6- use EasyCorp \Bundle \EasyAdminBundle \Context \AdminContext ;
6+ use EasyCorp \Bundle \EasyAdminBundle \Contracts \ Context \AdminContextInterface ;
77use EasyCorp \Bundle \EasyAdminBundle \Contracts \Provider \AdminContextProviderInterface ;
88use Symfony \Component \HttpFoundation \Request ;
99use Symfony \Component \HttpFoundation \Response ;
@@ -51,7 +51,7 @@ public function getData(): array
5151 return $ this ->data ;
5252 }
5353
54- private function collectData (AdminContext $ context ): array
54+ private function collectData (AdminContextInterface $ context ): array
5555 {
5656 return [
5757 'CRUD Controller FQCN ' => null === $ context ->getCrud () ? null : $ context ->getCrud ()->getControllerFqcn (),
You can’t perform that action at this time.
0 commit comments