Version 1.0.0 of Yii Dependency Injection container is released. It is a PSR-11 compatible dependency injection container that is able to instantiate and configure classes resolving dependencies.
Features are:
- PSR-11 compatible.
- Supports property injection, constructor injection and method injection.
- Detects circular references.
- Accepts array definitions. Could be used with mergeable configs.
- Provides optional autoload fallback for classes without explicit definition.
- Allows delegated lookup and has composite container.
- Supports aliasing.
- Supports service providers.
- Has state resetter for long-running workers serving multiple requests such as RoadRunner
or Swoole. - Supports container delegates.
Yii3 high quality standards are met: 100% code coverage, near 100% mutation score and type coverage.
Details and usage examples are available in README.