-
-
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
Services #33
Comments
This should be service contracts and model interface contracts only (very basic Later today, I plan on getting the contracts for DiscountsService, VouchersService and a revamped CheckoutsService added here to edit: |
@pdbreen: It's about adding an alias to the service containers the same way we did with models. We could do it from the package level as well. I guess doing it from here would hive us one place with all services map. |
What I'm pushing at is we really need to figure out how (or maybe even if) we are truly going to solve cross package boundary issues. Code like this:
will only work when those packages are installed which makes it completely untestable within a package. We had to create the model aliases because we have existing migrations that require external models. But for that usage, we can (and do) create dummy classes on the fly that allow the migrations to work. But, those dummy classes can't be used in the real code -- meaning, you can't really do this Again, this all assumes we want to be strict on package boundaries and what is/isn't available for use within a packages implementation AND we want to be able to fully test our packages. There's some more info in the group chat for discussion. |
Need to add all the available services in the packages to the app container.
The text was updated successfully, but these errors were encountered: