chamilo/chamilo-lms

View on GitHub
src/CoreBundle/DataFixtures/AccessGroupFixtures.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\DataFixtures;

use Chamilo\CoreBundle\Repository\GroupRepository;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;

class AccessGroupFixtures extends Fixture
{
    public function __construct(
        private readonly GroupRepository $groupRepository
    ) {}

    public function load(ObjectManager $manager): void
    {
        $this->groupRepository->createDefaultGroups($this);
    }
}