2022-01-03 01:17:24 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Initialize;
|
|
|
|
|
|
|
|
use Zoomyboy\LaravelNami\Api;
|
|
|
|
use Zoomyboy\LaravelNami\NamiUser;
|
|
|
|
|
|
|
|
class Initializer {
|
|
|
|
|
2022-02-12 15:35:58 +01:00
|
|
|
public static array $initializers = [
|
2022-01-03 01:17:24 +01:00
|
|
|
InitializeNationalities::class,
|
|
|
|
InitializeFees::class,
|
|
|
|
InitializeConfessions::class,
|
|
|
|
InitializeCountries::class,
|
|
|
|
InitializeGenders::class,
|
|
|
|
InitializeRegions::class,
|
|
|
|
InitializeActivities::class,
|
|
|
|
InitializeCourses::class,
|
|
|
|
InitializeMembers::class,
|
|
|
|
];
|
|
|
|
|
2022-02-12 15:35:58 +01:00
|
|
|
public function run(NamiUser $namiUser): void {
|
2022-01-03 01:17:24 +01:00
|
|
|
foreach (static::$initializers as $initializer) {
|
|
|
|
(new $initializer($namiUser->api()))->handle($namiUser);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|