From 81e8a4562b1141db56b5a9f8f185b6efc1728c8e Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 11 Jun 2021 12:29:41 +0200 Subject: [PATCH] Remove obsolete repositories.yaml file. --- .../ChillMainExtension.php | 1 - .../ChillMainBundle/config/services.yaml | 5 ++- .../config/services/repositories.yaml | 35 ------------------- 3 files changed, 4 insertions(+), 37 deletions(-) delete mode 100644 src/Bundle/ChillMainBundle/config/services/repositories.yaml diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php index f6d10ec9e..853a38c1b 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php @@ -115,7 +115,6 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface, $loader->load('services.yaml'); $loader->load('services/doctrine.yaml'); $loader->load('services/logger.yaml'); - $loader->load('services/repositories.yaml'); $loader->load('services/pagination.yaml'); $loader->load('services/export.yaml'); $loader->load('services/form.yaml'); diff --git a/src/Bundle/ChillMainBundle/config/services.yaml b/src/Bundle/ChillMainBundle/config/services.yaml index 20716e33b..1b0c8c1e1 100644 --- a/src/Bundle/ChillMainBundle/config/services.yaml +++ b/src/Bundle/ChillMainBundle/config/services.yaml @@ -2,6 +2,9 @@ parameters: # cl_chill_main.example.class: Chill\MainBundle\Example services: + _defaults: + autowire: true + autoconfigure: true Chill\MainBundle\Serializer\Normalizer\: resource: '../Serializer/Normalizer' @@ -12,7 +15,7 @@ services: Chill\MainBundle\Doctrine\Event\: resource: '../Doctrine/Event/' autowire: true - tags: + tags: - { name: 'doctrine.event_subscriber' } chill.main.helper.translatable_string: diff --git a/src/Bundle/ChillMainBundle/config/services/repositories.yaml b/src/Bundle/ChillMainBundle/config/services/repositories.yaml deleted file mode 100644 index 897fd4313..000000000 --- a/src/Bundle/ChillMainBundle/config/services/repositories.yaml +++ /dev/null @@ -1,35 +0,0 @@ -services: - chill.main.countries_repository: - class: Doctrine\ORM\EntityRepository - factory: ["@doctrine.orm.entity_manager", getRepository] - arguments: - - "Chill\\MainBundle\\Entity\\Country" - - chill.main.user_repository: - class: Doctrine\ORM\EntityRepository - factory: ["@doctrine.orm.entity_manager", getRepository] - arguments: - - "Chill\\MainBundle\\Entity\\User" - - chill.main.scope_repository: - class: Doctrine\ORM\EntityRepository - factory: ["@doctrine.orm.entity_manager", getRepository] - arguments: - - "Chill\\MainBundle\\Entity\\Scope" - - chill.main.postalcode_repository: - class: Doctrine\ORM\EntityRepository - factory: ["@doctrine.orm.entity_manager", getRepository] - arguments: - - "Chill\\MainBundle\\Entity\\PostalCode" - - Chill\MainBundle\Repository\PostalCodeRepository: '@chill.main.postalcode_repository' - - chill.main.center_repository: - class: Doctrine\ORM\EntityRepository - factory: ["@doctrine.orm.entity_manager", getRepository] - arguments: - - "Chill\\MainBundle\\Entity\\Center" - - Chill\MainBundle\Repository\CenterRepository: '@chill.main.center_repository' - \ No newline at end of file