8000 Add `container.require` · Issue #5 · wartman/capsule · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add container.require #5

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 86D1 you account related emails.

Already on GitHub? Sign in to your account

Open
wartman opened this issue Feb 16, 2024 · 0 comments
Open

Add container.require #5

wartman opened this issue Feb 16, 2024 · 0 comments
Assignees

Comments

@wartman
Copy link
Owner
wartman commented Feb 16, 2024

This is a simple addition to create dependencies without actually using them in a mapping. It likely will be a no-op outside of Modules.

For example:

import capsule.*;

class FooModule implements Module {
  public function provide(container:Container) {
    container.require(Foo);
  }
}
@wartman wartman self-assigned this Feb 16, 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

No branches or pull requests

1 participant
0