dot-annotated-services is Dotkernel's dependency injection service using annotations.
By providing reusable factories for service and repository injection, it reduces code complexity in projects.
Version 6.0 continues the annotation-based API of version 4.x.
Version 5.x is a separate package line that uses PHP attributes instead of annotations.
See the upgrade guide if you are coming from 4.x or 5.x.
8.3, 8.4, 8.5 or 8.61 or 2doctrine/annotations ^2.0doctrine/orm ^3.0| Branch | PSR-11 | Docblock Comments | OSS Lifecycle | PHP Version |
|---|---|---|---|---|
| 6.0 | 1 || 2 | Annotations | ||
| 5.0 | 1 || 2 | Attributes | ||
| 4.0 | 1 | Annotations | ||
| 3.0 | 1 | Annotations |
Versions 4.x and 6.0 are the proper releases of this package. They are annotation-based.
Version 5.x is discontinued. It used PHP attributes, which are now provided by a separate package: dot-dependency-injection (documentation).
Use it if you want attributes instead of annotations. See Version 5 is discontinued for migration notes.