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

Store checkout details on the cart entity #43

Merged
merged 2 commits into from
Apr 30, 2013

Conversation

pjedrzejewski
Copy link
Member

No description provided.

$addressRepository = $this->get('sylius.repository.address');

return $addressRepository->find($id);
return is_object($this->get('security.context')->getToken()->getUser());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO much better would be:

return $this->get('security.context')->isGranted('IS_AUTHENTICATED_REMEMBERED');

pjedrzejewski pushed a commit that referenced this pull request Apr 30, 2013
Store checkout details on the cart entity
@pjedrzejewski pjedrzejewski merged commit 2d19d04 into master Apr 30, 2013
@pjedrzejewski pjedrzejewski deleted the cart-and-checkout-refactoring branch April 30, 2013 10:01
pamil referenced this pull request in pamil/Sylius Mar 21, 2016
Update introduction.rst
CoderMaggie pushed a commit to CoderMaggie/Sylius that referenced this pull request Jun 1, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants