mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 22:46:13 +00:00
deprecated, fix useless repository service definition
This commit is contained in:
parent
e886d671c1
commit
a92686d10b
@ -55,10 +55,6 @@ use Symfony\Component\OptionsResolver\Options;
|
|||||||
*/
|
*/
|
||||||
class PickPersonType extends AbstractType
|
class PickPersonType extends AbstractType
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var PersonRepository
|
|
||||||
*/
|
|
||||||
protected $personRepository;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -85,7 +81,6 @@ class PickPersonType extends AbstractType
|
|||||||
protected $translator;
|
protected $translator;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
PersonRepository $personRepository,
|
|
||||||
TokenStorageInterface $tokenStorage,
|
TokenStorageInterface $tokenStorage,
|
||||||
AuthorizationHelper $authorizationHelper,
|
AuthorizationHelper $authorizationHelper,
|
||||||
UrlGeneratorInterface $urlGenerator,
|
UrlGeneratorInterface $urlGenerator,
|
||||||
|
@ -40,7 +40,6 @@ services:
|
|||||||
chill.person.form.type.pick_person:
|
chill.person.form.type.pick_person:
|
||||||
class: Chill\PersonBundle\Form\Type\PickPersonType
|
class: Chill\PersonBundle\Form\Type\PickPersonType
|
||||||
arguments:
|
arguments:
|
||||||
- "@chill.person.repository.person"
|
|
||||||
- "@security.token_storage"
|
- "@security.token_storage"
|
||||||
- "@chill.main.security.authorization.helper"
|
- "@chill.main.security.authorization.helper"
|
||||||
- '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
|
- '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
services:
|
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:
|
Chill\PersonBundle\Repository\PersonRepository:
|
||||||
class: Chill\PersonBundle\Person\PersonRepository
|
class: Chill\PersonBundle\Person\PersonRepository
|
||||||
@ -17,5 +11,5 @@ services:
|
|||||||
factory: ['@doctrine.orm.entity_manager', getRepository]
|
factory: ['@doctrine.orm.entity_manager', getRepository]
|
||||||
arguments:
|
arguments:
|
||||||
- 'Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive'
|
- 'Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive'
|
||||||
tag:
|
tags:
|
||||||
- { name: doctrine.repository_service }
|
- { name: doctrine.repository_service }
|
||||||
|
@ -2,7 +2,6 @@ services:
|
|||||||
chill_person.widget.person_list:
|
chill_person.widget.person_list:
|
||||||
class: Chill\PersonBundle\Widget\PersonListWidget
|
class: Chill\PersonBundle\Widget\PersonListWidget
|
||||||
arguments:
|
arguments:
|
||||||
- "@chill.person.repository.person"
|
|
||||||
- "@doctrine.orm.entity_manager"
|
- "@doctrine.orm.entity_manager"
|
||||||
- "@chill.main.security.authorization.helper"
|
- "@chill.main.security.authorization.helper"
|
||||||
- "@security.token_storage"
|
- "@security.token_storage"
|
||||||
|
@ -42,13 +42,6 @@ use Chill\CustomFieldsBundle\Entity\CustomField;
|
|||||||
class PersonListWidget implements WidgetInterface
|
class PersonListWidget implements WidgetInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
|
||||||
* Repository for persons
|
|
||||||
*
|
|
||||||
* @var EntityRepository
|
|
||||||
*/
|
|
||||||
protected $personRepository;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The entity manager
|
* The entity manager
|
||||||
*
|
*
|
||||||
@ -76,7 +69,6 @@ class PersonListWidget implements WidgetInterface
|
|||||||
protected $user;
|
protected $user;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityRepository $personRepostory,
|
|
||||||
EntityManager $em,
|
EntityManager $em,
|
||||||
AuthorizationHelper $authorizationHelper,
|
AuthorizationHelper $authorizationHelper,
|
||||||
TokenStorage $tokenStorage
|
TokenStorage $tokenStorage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user