You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
506 B
PHP

<?php
declare(strict_types=1);
namespace App\Job;
use App\Service\UserService;
class AfterLoginJob extends Job
{
public function handle()
{
$userId = (int)$this->params['user_id'] ?? 0;
$gameId = (int)$this->params['game_id'] ?? 0;
$loginTime = (int)$this->params['login_time'] ?? 0;
/**
* @var UserService $userService
*/
$userService = make(UserService::class);
$userService->afterLogin($userId, $gameId, $loginTime);
}
}