We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add documentation as mentioned by @brunopinheiro in Issue #45.
class PetOwner { var pet: AnimalType } container.register(PetOwner.self) { (_: ResolverType, pet: AnimalType) in var petOwner = PetOwner() petOwner.pet = pet return petOwner } var cat = Cat(name: "Bilbo") // Won't work, since we don't have any Registration Key matching [PetOwner, (Cat) -> PetOwner] var petOwner = container.resolve(PetOwner.self, argument: cat)! // This is the correct Registration Key [PetOwner, (AnimalType) -> PertOwner] var petOwner = container.resolve(PetOwner.self, argument: cat as AnimalType)!
The text was updated successfully, but these errors were encountered:
Add an example of type mismatch to register a component (Issue Swinje…
5b2d047
…ct#70). [skip ci]
Add the documentation by 5b2d047.
Sorry, something went wrong.
No branches or pull requests
Add documentation as mentioned by @brunopinheiro in Issue #45.
The text was updated successfully, but these errors were encountered: