mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -38,7 +38,7 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or
|
||||
*/
|
||||
private $faker;
|
||||
|
||||
public function __construct()
|
||||
public function __construct(private \Doctrine\ORM\EntityManager $entityManager)
|
||||
{
|
||||
$this->faker = FakerFactory::create('fr_FR');
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or
|
||||
|
||||
private function createExpected(ObjectManager $manager)
|
||||
{
|
||||
$charline = $this->container->get('doctrine.orm.entity_manager')
|
||||
$charline = $this->entityManager
|
||||
->getRepository(Person::class)
|
||||
->findOneBy(['firstName' => 'Charline', 'lastName' => 'DEPARDIEU']);
|
||||
|
||||
@@ -147,7 +147,7 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or
|
||||
|
||||
private function getPeopleRandom($percentage)
|
||||
{
|
||||
$people = $this->container->get('doctrine.orm.entity_manager')
|
||||
$people = $this->entityManager
|
||||
->getRepository(Person::class)
|
||||
->findAll();
|
||||
|
||||
|
Reference in New Issue
Block a user