Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FigRequestCookies::get() not using ServerRequesInterface::getCookieParams() ? #57

Open
drupol opened this issue Apr 8, 2023 · 0 comments

Comments

@drupol
Copy link

drupol commented Apr 8, 2023

Hello,

I'm trying to understand how FigRequestCookies::get() works.
By looking at the code, I noticed that it is not using 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.

@drupol drupol changed the title Cookies::get() not using ServerRequesInterface::getCookieParams() ? FigRequestCookies::get() not using ServerRequesInterface::getCookieParams() ? Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant