-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Create new Storage component to reduce code duplication between components #2089
Conversation
Insteresting! is some classes (like Sylius\Component\Storage\SessionStorage) are missing ? |
1605121
to
b84a9bf
Compare
@pjedrzejewski I'm not sure I should also adjust |
@stloyd Nice, I like it. Regarding cart, any reasons against? |
Does it mean to allow storing cart id in cookie? |
@pjedrzejewski I guess that would be quite big BC break ;) |
bc35eba
to
1fb5e79
Compare
1fb5e79
to
668c0c1
Compare
I think its a good idea to do the same with the Cart. See issue #2083. I think if you store it in a session or cookie, we could have this working, right? |
@steffenbrem Already pushed changes for |
@stloyd Ah I see, great 👍 This is the best approach IMO. |
Create new Storage component to reduce code duplication between components
Thanks Joseph! 👍 |
@pjedrzejewski This package is not available on packagist yet, this means we cannot install the In the composer.json of the |
@stloyd @pjedrzejewski The cookie storage does not work correctly. I think because the cookie is only set on the request with Also, in the storage key a dot (.) sign is used, which will be replaced by PHP. So even if the cookies did work, the keys would not match and the cart (or anyother stored thing) could not be fetched. |
Next step after #2088.