nette/docs

DI: explain what are DI related objects' methods for

Opened this issue ยท 2 comments

dakur commented

DI docs explains well what are CompilerExtension methods for. ๐Ÿ‘

However โ€“ as I'm still quite untouched by Nette DI implementation world โ€“ I have no idea what to do with the other stuff. Say I have two classes and I want to pass reference on one of them to the second. But now I have many methods called by many new terms and I do not know how to use them at all.

image

I think at least defining what each term means and how they relate together would be good. Yes, it is kinda spread in other DI docs, but you have to read it all through until you find something. Kind of dictionary with explanation may be helpful.

Terms which come to my mind to be added:

  • container
  • compiler
  • builder
  • service
  • type
  • tag
  • setup
  • definition
dg commented

I'm currently writing DI documentation, but it will take a few more weeks.

dakur commented

I'm currently writing DI documentation, but it will take a few more weeks.

Cool. I just wanted to post it somewhere as it is not the first time I'm fighting with this. I work with DI extensions rarely, so I usually forget everything and have to search for it every time again and again.