From 84913553e831e61de8c05990be15f3d09dbaa505 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Thu, 10 Jun 2021 15:11:36 +0200 Subject: [PATCH] NotificationRepo as a service --- .../config/services/repositories.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/Bundle/ChillMainBundle/config/services/repositories.yaml diff --git a/src/Bundle/ChillMainBundle/config/services/repositories.yaml b/src/Bundle/ChillMainBundle/config/services/repositories.yaml new file mode 100644 index 000000000..18fd70df8 --- /dev/null +++ b/src/Bundle/ChillMainBundle/config/services/repositories.yaml @@ -0,0 +1,42 @@ +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' + + chill.main.notification_repository: + class: Doctrine\ORM\EntityRepository + factory: ["@doctrine.orm.entity_manager", getRepository] + arguments: + - "Chill\\MainBundle\\Entity\\Notification" + + Chill\MainBundle\Repository\NotificationRepository: '@chill.main.notification_repository'