22 lines
399 B
PHP
22 lines
399 B
PHP
<?php
|
|
|
|
namespace App\DataFixtures;
|
|
|
|
use App\Factory\UserFactory;
|
|
use Doctrine\Bundle\FixturesBundle\Fixture;
|
|
use Doctrine\Persistence\ObjectManager;
|
|
|
|
class AppFixtures extends Fixture
|
|
{
|
|
CONST ADMIN_USER = 'ogadmin';
|
|
|
|
|
|
/**
|
|
* @throws \Exception
|
|
*/
|
|
public function load(ObjectManager $manager): void
|
|
{
|
|
UserFactory::createOne(['username' => self::ADMIN_USER]);
|
|
}
|
|
}
|