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

Skip to content

[API] Add admin and shop section resolvers#12509

Merged
lchrusciel merged 1 commit into
Sylius:masterfrom
GSadee:api-section-resolvers
Apr 9, 2021
Merged

[API] Add admin and shop section resolvers#12509
lchrusciel merged 1 commit into
Sylius:masterfrom
GSadee:api-section-resolvers

Conversation

@GSadee
Copy link
Copy Markdown
Member

@GSadee GSadee commented Apr 6, 2021

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

@GSadee GSadee added the API APIs related issues and PRs. label Apr 6, 2021
@GSadee GSadee requested a review from a team as a code owner April 6, 2021 12:11
@GSadee GSadee force-pushed the api-section-resolvers branch 2 times, most recently from b06937d to fcd1075 Compare April 6, 2021 12:22
@GSadee GSadee force-pushed the api-section-resolvers branch from fcd1075 to 0d8c3ea Compare April 7, 2021 04:37
use Sylius\Bundle\CoreBundle\SectionResolver\SectionInterface;
use Sylius\Bundle\CoreBundle\SectionResolver\UriBasedSectionResolverInterface;

final class AdminApiUriBasedSectionResolver implements UriBasedSectionResolverInterface
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a rough idea - these UriBasedSectionsResolvers have generally the same implementation, it only differs regarding the returned class (still, the interface is the same). Maybe it would be worth extracting some generic resolver from them? 🤔 Not a block for merge, just thinking out loud 🖖

@GSadee GSadee force-pushed the api-section-resolvers branch from 0d8c3ea to b02b49c Compare April 7, 2021 10:16
@probot-autolabeler probot-autolabeler Bot added the Admin AdminBundle related issues and PRs. label Apr 7, 2021
@GSadee GSadee mentioned this pull request Apr 7, 2021

use Sylius\Bundle\CoreBundle\SectionResolver\SectionInterface;

class AdminApiSection implements SectionInterface
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it is not misleading in comparison to old AdminAPI

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I thought about that, but it is still the most significant name and it is in different bundle, so I think it is the best name after all.

@lchrusciel lchrusciel merged commit d329441 into Sylius:master Apr 9, 2021
@lchrusciel
Copy link
Copy Markdown
Contributor

Thank you, Grzegorz! 🥇

@GSadee GSadee deleted the api-section-resolvers branch April 12, 2021 08:08
lchrusciel added a commit that referenced this pull request Apr 13, 2021
This PR was merged into the 1.10-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes?
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

Based on #12509

Commits
-------

6a525e7 Remove listening for JWT event in CartBlamerListener and use section provider in this listener
87e13c5 [API] Overwrite CartBlamerListener in ApiBundle
34c8357 add new Section class and fix cart blaming
7aaf9d3 move cartBlamerListener to proper bundle
9fd8d13 fix and rename listeners
GSadee pushed a commit to Sylius/SyliusApiBundle that referenced this pull request Apr 15, 2021
This PR was merged into the 1.10-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes?
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

Based on Sylius/Sylius#12509

Commits
-------

6a525e7d885f1539ee8494b2518f0fa11ca21d21 Remove listening for JWT event in CartBlamerListener and use section provider in this listener
87e13c5088fb1128d06b4760dce422d122e7819d [API] Overwrite CartBlamerListener in ApiBundle
34c83578327701925e49800b481a6554e4f2164d add new Section class and fix cart blaming
7aaf9d34ac683e8a3e0e8dfa224e416c9047c6d5 move cartBlamerListener to proper bundle
9fd8d132939b50d7f744ee49e7e7f94107a3f84c fix and rename listeners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin AdminBundle related issues and PRs. API APIs related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants