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

Контроль за инстансами #4

Open
maestroprog opened this issue Jan 21, 2018 · 1 comment
Open

Контроль за инстансами #4

maestroprog opened this issue Jan 21, 2018 · 1 comment
Labels

Comments

@maestroprog
Copy link
Owner

Если доставать зависимость разными способами: по алиасу или по названию класса, то не будут ли создаваться различные инстансы?

@iassasin
Copy link

iassasin commented Jan 21, 2018

  • алиасы == каждому типу ровно по одному инстансу
  • именованные зависимости == каждого типа может быть несколько инстансов.

Нужно определиться, что именно из этих двух реализует di-container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants