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

Create HOW_IT_WORKS.md #1019

Closed
wants to merge 1 commit into from
Closed

Create HOW_IT_WORKS.md #1019

wants to merge 1 commit into from

Conversation

deebloo
Copy link
Member

@deebloo deebloo commented Jul 28, 2024

No description provided.

Copy link
Contributor

@Phoscur Phoscur left a comment

Choose a reason for hiding this comment

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

Oh yes, this is the place where we could leave (at the end of the document) an overcomplicated example with multiple "provider levels", so layering injectors:
0. System / APIs

  1. Domain
  2. Controllers

And for some reasoning I already gave up on, these layers should relate to each other with injector inheritance.

graph TD
  Controller-->Domain-->System
Loading

Nice first time I use mermaid :)
And now stubbing can become really interesting, because it has to be done in the correct injector/level!
Or maybe adding a (more or less redundant) test case with such an overcomplicated example might suit you more?


This creates a local injector for every instance of this particular service. All service injectors are tracked in a map called INJECTABLE_MAP.

If we were construct an instance of this service we would find a single injector insntance in INJECTABLE_MAP.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: instance

@deebloo deebloo closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants