NetteDI
NetteDI, also known as Nette Dependency Injection, is the dependency injection container component of the Nette Framework, a PHP web framework. It provides a runtime container for instantiating and wiring objects by declaring services and their dependencies, enabling inversion of control and centralized configuration of object lifetimes.
Core concepts include service definitions, parameters, and the ability to configure services through NEON or PHP
Autowiring and factories are supported: type hints can be used to automatically resolve dependencies, while factory
Usage in Nette projects typically involves configuring services in a config file and letting the compiler
Architecture and ecosystem: The DI container consists of the Container class, a Compiler that produces optimized
See also: Nette Framework, Dependency injection, NEON, Autowiring.