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

Add missing csrf_token field #391

Merged
merged 2 commits into from
Nov 8, 2022
Merged

Conversation

jakubtobiasz
Copy link
Contributor

Q A
Branch? 1.2
Bug fix? kind of
New feature? no
Related tickets -

In a few of our plugins, we have included this change manually, so this PR fixes this.

@jakubtobiasz jakubtobiasz requested a review from a team as a code owner November 4, 2022 13:35
@jakubtobiasz jakubtobiasz changed the base branch from 1.3 to 1.2 November 4, 2022 13:36
@jakubtobiasz jakubtobiasz force-pushed the fix/missing-csrf-token branch 2 times, most recently from 53aacf2 to 540b68c Compare November 7, 2022 13:51
@GSadee GSadee added the Bug Confirmed bugs or bugfixes. label Nov 8, 2022
public function __construct(
MessageBusInterface $commandBus,
Session $session,
UrlGeneratorInterface $router,
RefundUnitsCommandCreatorInterface $commandCreator,
LoggerInterface $logger
LoggerInterface $logger,
CsrfTokenManagerInterface $csrfTokenManager,
Copy link
Member

Choose a reason for hiding this comment

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

As you were adding a new argument, you could use constructor property promotion here:

Suggested change
CsrfTokenManagerInterface $csrfTokenManager,
private CsrfTokenManagerInterface $csrfTokenManager,

@GSadee GSadee merged commit 61ec5ba into Sylius:1.2 Nov 8, 2022
@GSadee
Copy link
Member

GSadee commented Nov 8, 2022

Thank you, Jakub! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants