| 1 | <?php |
||
| 15 | class ApiGenerateTokenFromObjectTask extends Task |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var \App\Containers\Authentication\Adapters\JwtAuthAdapter |
||
| 20 | */ |
||
| 21 | private $jwtAuthAdapter; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ApiLoginThisUserObjectTask constructor. |
||
| 25 | * |
||
| 26 | * @param \App\Containers\Authentication\Adapters\JwtAuthAdapter $jwtAuthAdapter |
||
| 27 | */ |
||
| 28 | public function __construct(JwtAuthAdapter $jwtAuthAdapter) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $user |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function run($user) |
||
| 48 | |||
| 49 | } |
||
| 50 |