koel/app/Http/Controllers/API/Interaction/Controller.php

23 lines
591 B
PHP
Raw Normal View History

2017-08-06 09:43:59 +00:00
<?php
namespace App\Http\Controllers\API\Interaction;
use App\Http\Controllers\Controller as BaseController;
2020-10-26 15:29:29 +00:00
use App\Models\User;
2018-08-18 12:27:26 +00:00
use App\Services\InteractionService;
2020-10-26 15:29:29 +00:00
use Illuminate\Contracts\Auth\Authenticatable;
2017-08-06 09:43:59 +00:00
class Controller extends BaseController
{
2021-06-05 10:47:56 +00:00
protected InteractionService $interactionService;
2018-08-18 12:27:26 +00:00
2020-10-26 15:29:29 +00:00
/** @var User */
2022-06-10 10:47:46 +00:00
protected ?Authenticatable $user = null;
2020-10-26 15:29:29 +00:00
public function __construct(InteractionService $interactionService, ?Authenticatable $currentUser)
2018-08-18 12:27:26 +00:00
{
$this->interactionService = $interactionService;
2022-06-10 10:47:46 +00:00
$this->user = $currentUser;
2018-08-18 12:27:26 +00:00
}
2017-08-06 09:43:59 +00:00
}