mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Service autodiscovery, autowire and autoconfigure.
This commit is contained in:
parent
86dbe527d8
commit
ed4f1344c2
@ -2,6 +2,9 @@ parameters:
|
|||||||
# cl_chill_person.example.class: Chill\PersonBundle\Example
|
# cl_chill_person.example.class: Chill\PersonBundle\Example
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
_defaults:
|
||||||
|
autowire: true
|
||||||
|
autoconfigure: true
|
||||||
|
|
||||||
chill.person.form.type.select2maritalstatus:
|
chill.person.form.type.select2maritalstatus:
|
||||||
class: Chill\PersonBundle\Form\Type\Select2MaritalStatusType
|
class: Chill\PersonBundle\Form\Type\Select2MaritalStatusType
|
||||||
@ -36,6 +39,4 @@ services:
|
|||||||
|
|
||||||
Chill\PersonBundle\Repository\:
|
Chill\PersonBundle\Repository\:
|
||||||
resource: '../Repository/'
|
resource: '../Repository/'
|
||||||
arguments:
|
|
||||||
- '@Doctrine\Persistence\ManagerRegistry'
|
|
||||||
tags: ['doctrine.repository_service']
|
tags: ['doctrine.repository_service']
|
||||||
|
@ -2,29 +2,6 @@ services:
|
|||||||
|
|
||||||
chill.person.repository.person:
|
chill.person.repository.person:
|
||||||
class: Chill\PersonBundle\Repository\PersonRepository
|
class: Chill\PersonBundle\Repository\PersonRepository
|
||||||
factory: ['@doctrine.orm.entity_manager', getRepository]
|
autowire: true
|
||||||
arguments:
|
autoconfigure: true
|
||||||
- 'Chill\PersonBundle\Entity\Person'
|
|
||||||
Chill\PersonBundle\Repository\PersonRepository: '@chill.person.repository.person'
|
Chill\PersonBundle\Repository\PersonRepository: '@chill.person.repository.person'
|
||||||
|
|
||||||
Chill\PersonBundle\Repository\AccompanyingPeriod\ClosingMotiveRepository:
|
|
||||||
class: Chill\PersonBundle\Repository\AccompanyingPeriod\ClosingMotiveRepository
|
|
||||||
factory: ['@doctrine.orm.entity_manager', getRepository]
|
|
||||||
arguments:
|
|
||||||
- 'Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive'
|
|
||||||
|
|
||||||
Chill\PersonBundle\Repository\AccompanyingPeriodRepository:
|
|
||||||
class: Chill\PersonBundle\Repository\AccompanyingPeriodRepository
|
|
||||||
tags: [ doctrine.repository_service ]
|
|
||||||
arguments:
|
|
||||||
- '@Doctrine\Persistence\ManagerRegistry'
|
|
||||||
|
|
||||||
Chill\PersonBundle\Repository\AccompanyingPeriodParticipationRepository:
|
|
||||||
arguments:
|
|
||||||
- '@Doctrine\Persistence\ManagerRegistry'
|
|
||||||
tags: [ doctrine.repository_service ]
|
|
||||||
|
|
||||||
Chill\PersonBundle\Repository\AccompanyingPeriod\OriginRepository:
|
|
||||||
arguments:
|
|
||||||
- '@Doctrine\Persistence\ManagerRegistry'
|
|
||||||
tags: [ doctrine.repository_service ]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user