Open drupol opened 1 year ago
Hello,
I'm trying to understand how FigRequestCookies::get() works. By looking at the code, I noticed that it is not using ServerRequesInterface::getCookieParams() .
FigRequestCookies::get()
ServerRequesInterface::getCookieParams()
Is there anyone who could explain that?
Basically, what are the differences between:
$cookie = FigRequestCookies::get($request, 'foo');
vs
$cookie = $request->getCookieParams()['foo'];
Thank you.
Hello,
I'm trying to understand how
FigRequestCookies::get()
works. By looking at the code, I noticed that it is not usingServerRequesInterface::getCookieParams()
.Is there anyone who could explain that?
Basically, what are the differences between:
vs
Thank you.