add search by phone + format phonenumber

This commit is contained in:
2019-10-30 22:54:24 +01:00
parent 122aa3a993
commit f1eefa7ed7
19 changed files with 469 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ Chill\PersonBundle\Entity\Person:
indexes:
person_names:
columns: [firstName, lastName]
repositoryClass: Chill\PersonBundle\Entity\PersonRepository
repositoryClass: Chill\PersonBundle\Repository\PersonRepository
fields:
id:
type: integer

View File

@@ -47,9 +47,3 @@ services:
tags:
- { name: form.type, alias: chill_personbundle_person_creation }
chill.person.repository.person:
class: Chill\PersonBundle\Entity\PersonRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\PersonBundle\Entity\Person'

View File

@@ -0,0 +1,13 @@
services:
chill.person.repository.person:
class: Chill\PersonBundle\Person\PersonRepository
deprecated: the service '%service_id%' is deprecated since 2019-10-30 and will be removed soon. Use 'Chill\PersonBundle\Repository\PersonRepository' instead
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\PersonBundle\Entity\Person'
Chill\PersonBundle\Repository\PersonRepository:
class: Chill\PersonBundle\Person\PersonRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\PersonBundle\Entity\Person'

View File

@@ -0,0 +1,11 @@
services:
Chill\PersonBundle\Search\PersonSearchByPhone:
arguments:
- '@Chill\PersonBundle\Repository\PersonRepository'
- '@security.token_storage'
- '@chill.main.security.authorization.helper'
- '@chill_main.paginator_factory'
- '@Symfony\Component\Templating\EngineInterface'
- '%chill_person.search.search_by_phone%'
tags:
- { name: chill.search, alias: 'person_by_phone' }