| 1 | <?php |
||
| 28 | class LoadGroupData extends Fixture implements FixtureGroupInterface |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * Datas groups. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | private $datas = [ |
||
| 36 | ['admin', 'ROLE_SUPER_ADMIN'], |
||
| 37 | ['assistant', 'ROLE_ADMIN'], |
||
| 38 | ['user', 'ROLE_USER'], |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Load data fixtures with the passed EntityManager. |
||
| 43 | * |
||
| 44 | * @param ObjectManager $manager |
||
| 45 | */ |
||
| 46 | public function load(ObjectManager $manager) |
||
| 58 | |||
| 59 | public static function getGroups(): array |
||
| 63 | } |
||
| 64 |