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

Extracted AppWebhook #1

Merged
merged 9 commits into from
Jul 5, 2024
Merged

Extracted AppWebhook #1

merged 9 commits into from
Jul 5, 2024

Conversation

stereomon
Copy link
Contributor

PR Description

TBD

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md

@stereomon stereomon force-pushed the feature/extracted-app-webhook branch from 41647e1 to 572710f Compare June 27, 2024 05:32
@stereomon stereomon force-pushed the feature/extracted-app-webhook branch from ef36289 to 6f52357 Compare June 27, 2024 06:00
composer.json Outdated Show resolved Hide resolved
$container->set(static::FACADE_APP_WEBHOOK, static function (Container $container): AppWebhookBackendApiToAppWebhookFacadeInterface {
// The AppWebhookFacade will always be mocked
// @codeCoverageIgnoreStart
return new AppWebhookBackendApiToAppWebhookFacadeBridge($container->getLocator()->appWebhook()->facade());
Copy link
Contributor

Choose a reason for hiding this comment

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

this is one repository, so the bridge is overkill here, just use facade via locator.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, let's keep our rules here as much as we can. This is not blocking anything. Don't want to spent time on this in this high pressure phase.

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't have rules for non-SCOS packages.
that is why I would not make it complex from the beginning.

Sure, you can ignore all my comments and just release it "as is", but remember that you always won't have time for refactoring later :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't ignore all your comments. I also don't have time to refactor to perfection now. Keeping this as in other Spryker module even if it's a package doesn't hurt IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW one sniffer complained about it that's why I added them everywhere. I don't like the bridges at all but for DevEx it's better to use one style if possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

My opinion about bridges is different, they make DevEx worse (more boilerplate code, more classes without a value)

Copy link
Contributor

Choose a reason for hiding this comment

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

the sniffer is from SCOS, this package is another type of packages, so you should not use all SCOS sniffers and rules here.

tests/bin/console Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
LICENSE Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@stereomon stereomon merged commit 4c8b586 into main Jul 5, 2024
1 check passed
@stereomon stereomon deleted the feature/extracted-app-webhook branch July 5, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants