koel/app/Http/Controllers/API/Interaction/Controller.php
2022-07-04 10:36:39 +02:00

22 lines
591 B
PHP

<?php
namespace App\Http\Controllers\API\Interaction;
use App\Http\Controllers\Controller as BaseController;
use App\Models\User;
use App\Services\InteractionService;
use Illuminate\Contracts\Auth\Authenticatable;
class Controller extends BaseController
{
protected InteractionService $interactionService;
/** @var User */
protected ?Authenticatable $user = null;
public function __construct(InteractionService $interactionService, ?Authenticatable $currentUser)
{
$this->interactionService = $interactionService;
$this->user = $currentUser;
}
}