Skip to content

Commit c6c216e

Browse files
committed
Don't use the removed Request::get() method
1 parent 725a03b commit c6c216e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider/AdminContextProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getContext(bool $throw = false): ?AdminContextInterface
4848
throw new \LogicException('Cannot use the EasyAdmin context: no request is available.');
4949
}
5050

51-
return $currentRequest?->get(EA::CONTEXT_REQUEST_ATTRIBUTE);
51+
return $currentRequest?->attributes->get(EA::CONTEXT_REQUEST_ATTRIBUTE);
5252
}
5353

5454
public function getRequest(): Request

0 commit comments

Comments
 (0)