2022-01-02 12:32:57 +01:00
|
|
|
<?php
|
2020-04-12 00:26:44 +02:00
|
|
|
|
|
|
|
namespace App\Initialize;
|
|
|
|
|
2021-11-17 23:58:28 +01:00
|
|
|
use Zoomyboy\LaravelNami\NamiUser;
|
|
|
|
|
2020-04-12 00:26:44 +02:00
|
|
|
class InitializeActivities {
|
|
|
|
|
|
|
|
private $api;
|
2021-11-11 23:46:56 +01:00
|
|
|
|
2022-01-03 01:17:24 +01:00
|
|
|
public function __construct($api) {
|
2020-04-12 00:26:44 +02:00
|
|
|
$this->api = $api;
|
|
|
|
}
|
|
|
|
|
2021-11-17 23:58:28 +01:00
|
|
|
public function handle(NamiUser $user) {
|
2022-01-03 01:17:24 +01:00
|
|
|
app(ActivityCreator::class)->createFor($this->api, $user->getNamiGroupId());
|
2020-04-12 00:26:44 +02:00
|
|
|
}
|
|
|
|
}
|