From ca651d0f172415f19e0841f54d02a882fe34ddf2 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 5 Oct 2021 15:13:23 +0200
Subject: [PATCH] Use autoconfigure for all services

Since we inherit from all the required interfaces anyway, autoconfigure should
just work. No need to confuse users with all the special service tags.
---
 src/Resources/config/services.yaml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml
index a73ab63..9e9466b 100644
--- a/src/Resources/config/services.yaml
+++ b/src/Resources/config/services.yaml
@@ -5,7 +5,7 @@ services:
 
   Dbp\Relay\TemplateBundle\Controller\:
     resource: '../../Controller'
-    tags: ['controller.service_arguments']
+    autoconfigure: true
     autowire: true
 
   Dbp\Relay\TemplateBundle\DataPersister\:
@@ -13,13 +13,10 @@ services:
     autowire: true
     autoconfigure: true
 
-  Dbp\Relay\TemplateBundle\DataProvider\PlaceCollectionDataProvider:
-    tags: [{ name: 'api_platform.collection_data_provider'}]
-    autowire: true
-
-  Dbp\Relay\TemplateBundle\DataProvider\PlaceItemDataProvider:
-    tags: ['api_platform.item_data_provider']
+  Dbp\Relay\TemplateBundle\DataProvider\:
+    resource: '../../DataProvider'
     autowire: true
+    autoconfigure: true
 
   Dbp\Relay\TemplateBundle\Service\ExternalApi:
     autowire: true
-- 
GitLab