Skip to content

Commit

Permalink
Config des fictures pour creation de database lors du push github et …
Browse files Browse the repository at this point in the history
…heroku 4
  • Loading branch information
edouardproust committed Dec 15, 2021
1 parent bb3203d commit 7e1c8f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DataFixtures/AppFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\DataFixtures;

use App\App\Helper\DeliveryHelper;
use Faker\Factory;
use App\Entity\{
User,
Product,
Expand Down Expand Up @@ -71,7 +72,7 @@ class AppFixtures extends Fixture {
public function __construct(UserPasswordHasherInterface $hasher)
{
$this->hasher = $hasher;
$this->faker = \Faker\Factory::create();
$this->faker = Factory::create();
}

public function load(ObjectManager $manager): void
Expand Down

0 comments on commit 7e1c8f2

Please sign in to comment.