Skip to content

Add missing csrf_token field#391

Merged
GSadee merged 2 commits into
Sylius:1.2from
jakubtobiasz:fix/missing-csrf-token
Nov 8, 2022
Merged

Add missing csrf_token field#391
GSadee merged 2 commits into
Sylius:1.2from
jakubtobiasz:fix/missing-csrf-token

Conversation

@jakubtobiasz
Copy link
Copy Markdown
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
Comment thread src/Resources/views/orderRefunds.html.twig
@GSadee GSadee added the Bug Confirmed bugs or bugfixes. label Nov 8, 2022
RefundUnitsCommandCreatorInterface $commandCreator,
LoggerInterface $logger
LoggerInterface $logger,
CsrfTokenManagerInterface $csrfTokenManager,
Copy link
Copy Markdown
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
Copy Markdown
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