Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@wadjeroudi
Copy link
Contributor

Q A
Branch? master
Bug fix? yes
New feature? yes
BC breaks? yes
Deprecations? no
Related tickets fixes #9719
License MIT

'filter' => [
'string' => 'AppBundle:Grid/Filter:string.html.twig',
'date' => 'AppBundle:Grid/Filter:date.html.twig',
'string' => 'Grid/Filter/string.html.twig',
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a test, but I guess there's @ missing in the beginning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was on purpose, you can't use @app. Not totally sure if it's the correct value.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah, you're right! :)

@pamil pamil added Potential Bug Potential bugs or bugfixes, that needs to be reproduced. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). labels Sep 24, 2018
@pamil
Copy link
Contributor

pamil commented Sep 24, 2018

LGTM apart from the answer for the "BC breaks?" question, what exactly is a BC break here?

@wadjeroudi wadjeroudi force-pushed the master branch 2 times, most recently from f549ece to 209f6a9 Compare September 24, 2018 15:04
@wadjeroudi
Copy link
Contributor Author

wadjeroudi commented Sep 25, 2018

@pamil do you know why behat suite didn't pass ? I can't spot the mistaske.
For the BC break, it's because of the new structure with this new syntax, not sure if it does have side effects to be handled between old structure projects and new flex structure.

Copy link
Contributor

@pamil pamil left a comment

Choose a reason for hiding this comment

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

@wadjeroudi I think I found why Behat is failing

{{ sonata_block_render_event('sylius.shop.checkout.complete.before_summary', {'order': order, 'form': form}) }}

{% include 'SyliusShopBundle:Common/Order:_summary.html.twig' %}
{% include '@SyliusShop/Common/Order/' %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Something went wrong here :)

@wadjeroudi
Copy link
Contributor Author

@teohhanhui
Copy link
Contributor

I don't see any problem with using the "new" syntax in the docs. In fact, it's not new and already supported since Twig 2.0?

section: admin
path: users
templates: SyliusAdminBundle:Crud
templates: "@SyliusAdmin\\Crud"
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought it should be a forward slash, not a backslash?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@teohhanhui took me a while to figure it out, the / does escape the content of the route. Tried a lot of combination.
The only working solution (tested) was that.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it might be connected with symfony/symfony#23412.

@wadjeroudi
Copy link
Contributor Author

@teohhanhui I'm not opposed, just maybe if we replace, we should add a documentation that explains clearly the two structures and how to override (even if it's a common symfony practice) ?

Copy link
Contributor

@pamil pamil left a comment

Choose a reason for hiding this comment

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

Amazing job, thanks a lot! 🎉

@pamil pamil changed the base branch from master to 1.3 October 2, 2018 11:25
@pamil
Copy link
Contributor

pamil commented Oct 2, 2018

Rebased the PR to 1.3 branch.

@pamil pamil merged commit d5bffe8 into Sylius:1.3 Oct 2, 2018
@pamil
Copy link
Contributor

pamil commented Oct 2, 2018

Thank you, @wadjeroudi and @teohhanhui! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants