After installation, register dot-annotated-services in your project by adding the below line to your configuration aggregator (usually: config/config.php):
dot-annotated-services
config/config.php
Dot\AnnotatedServices\ConfigProvider::class,