The documentation you are viewing is for an older version of this component.
Switch to the latest (v4) version.
Starting from version 5.x, dot-annotated-services uses PHP attributes to inject dependencies.
You can use it to: