-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
41647e1
to
572710f
Compare
ef36289
to
6f52357
Compare
src/Spryker/Glue/AppWebhookBackendApi/AppWebhookBackendApiConfig.php
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()); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
PR Description
TBD
Checklist